From 53485e08e3d304db4a607506d03504540ab8f796 Mon Sep 17 00:00:00 2001 From: "Sergey V. Lobanov" Date: Mon, 2 Sep 2024 21:32:03 +0000 Subject: build: fix build for entware (HAVE_GOOD_IFARP detection issue) Linux kernel before 4.11 has the issue decribed in the commit: https://github.com/torvalds/linux/commit/2618be7dccf8739b89e1906b64bd8d551af351e6 It fails accel-ppp build on entware. Let's include sys/socket.h to avoid this issue. All files that use linux/if_arp.h includes sys/socket.h before --- accel-pppd/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/accel-pppd/CMakeLists.txt b/accel-pppd/CMakeLists.txt index 496fbdca..7b626c44 100644 --- a/accel-pppd/CMakeLists.txt +++ b/accel-pppd/CMakeLists.txt @@ -60,6 +60,7 @@ ENDIF (HAVE_FREE_FN_T) INCLUDE (CheckCSourceCompiles) CHECK_C_SOURCE_COMPILES(" +#include #include #include int main(void) -- cgit v1.2.3