summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorSergey V. Lobanov <sergey@lobanov.in>2024-09-02 21:32:03 +0000
committerSergey V. Lobanov <sergey@lobanov.in>2024-09-02 21:32:03 +0000
commit53485e08e3d304db4a607506d03504540ab8f796 (patch)
treea88f56927cba15cfdef531445a3d1de6beed2449 /accel-pppd
parent0c021f60244a7fd992916a882fb4ed7277f5cba8 (diff)
downloadaccel-ppp-53485e08e3d304db4a607506d03504540ab8f796.tar.gz
accel-ppp-53485e08e3d304db4a607506d03504540ab8f796.zip
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
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
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 <sys/socket.h>
#include <linux/if_arp.h>
#include <net/ethernet.h>
int main(void)