aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2015-05-13 16:12:04 +0200
committerDaniel Golle <daniel@makrotopia.org>2015-05-13 16:12:04 +0200
commitd4381c289f8d12d7eabb5847234743edc03161ba (patch)
tree3ebc8a90accee03c207e9f3d921c19b3a3cada00
parentb47fe96be480fd68c23642498f8a72b86613a0ae (diff)
xl2tpd: fix a minor compiler warning
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 <daniel@makrotopia.org>
-rw-r--r--net/xl2tpd/patches/250-xl2tpd-control-atexit-needs-stdlib.patch12
1 files changed, 12 insertions, 0 deletions
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
index 000000000..e4dad8e8d
--- /dev/null
+++ b/net/xl2tpd/patches/250-xl2tpd-control-atexit-needs-stdlib.patch
@@ -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>