mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 03:41:29 +00:00
xl2tpd: fix build with musl
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
13
net/xl2tpd/patches/120-no-bsd-signal-in-musl.patch
Normal file
13
net/xl2tpd/patches/120-no-bsd-signal-in-musl.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
Index: xl2tpd-1.3.6/xl2tpd.c
|
||||
===================================================================
|
||||
--- xl2tpd-1.3.6.orig/xl2tpd.c
|
||||
+++ xl2tpd-1.3.6/xl2tpd.c
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
-#if (__GLIBC__ < 2)
|
||||
+#if defined (__GLIBC__) && (__GLIBC__ < 2)
|
||||
# if defined(FREEBSD) || defined(OPENBSD)
|
||||
# include <sys/signal.h>
|
||||
# elif defined(LINUX)
|
||||
Reference in New Issue
Block a user