xl2tpd: fix build with musl

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2015-03-29 20:04:55 +02:00
parent e6825ac677
commit 28e2ca2011

View 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)