xl2tpd: fix a minor compiler warning
authorDaniel Golle <redacted>
Wed, 13 May 2015 14:12:04 +0000 (16:12 +0200)
committerDaniel Golle <redacted>
Wed, 13 May 2015 14:12:04 +0000 (16:12 +0200)
gcc complains about atexit() being implicitely defined in
xl2tpd-control.c
Fix that by including stdlib.h in xl2tpd-control.c

Signed-off-by: Daniel Golle <redacted>
net/xl2tpd/patches/250-xl2tpd-control-atexit-needs-stdlib.patch [new file with mode: 0644]

diff --git a/net/xl2tpd/patches/250-xl2tpd-control-atexit-needs-stdlib.patch b/net/xl2tpd/patches/250-xl2tpd-control-atexit-needs-stdlib.patch
new file mode 100644 (file)
index 0000000..e4dad8e
--- /dev/null
@@ -0,0 +1,12 @@
+Index: xl2tpd-1.3.7pre20141126/xl2tpd-control.c
+===================================================================
+--- xl2tpd-1.3.7pre20141126.orig/xl2tpd-control.c
++++ xl2tpd-1.3.7pre20141126/xl2tpd-control.c
+@@ -12,6 +12,7 @@
+  
+ #define _GNU_SOURCE
++#include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+ #include <stdarg.h>
git clone https://git.99rst.org/PROJECT