aboutsummaryrefslogtreecommitdiffstats
path: root/main/nfs-utils/0002-Fix-header-include-for-definition-of-NULL.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/nfs-utils/0002-Fix-header-include-for-definition-of-NULL.patch')
-rw-r--r--main/nfs-utils/0002-Fix-header-include-for-definition-of-NULL.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/main/nfs-utils/0002-Fix-header-include-for-definition-of-NULL.patch b/main/nfs-utils/0002-Fix-header-include-for-definition-of-NULL.patch
new file mode 100644
index 0000000000..ba7c56c44a
--- /dev/null
+++ b/main/nfs-utils/0002-Fix-header-include-for-definition-of-NULL.patch
@@ -0,0 +1,27 @@
+From 7bb18315852601df9fd02f714d12fa09b9adbdba Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Wed, 12 Feb 2014 13:43:34 +0000
+Subject: [PATCH 2/7] Fix header include for definition of NULL
+
+NULL is defined in stdlib.h so we need to include that.
+
+Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
+---
+ support/include/sockaddr.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/support/include/sockaddr.h b/support/include/sockaddr.h
+index a1c30f9..446b537 100644
+--- a/support/include/sockaddr.h
++++ b/support/include/sockaddr.h
+@@ -27,6 +27,7 @@
+ #ifdef HAVE_LIBIO_H
+ #include <libio.h>
+ #endif
++#include <stdlib.h>
+ #include <stdbool.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+--
+1.8.5.3
+