summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Sandall2010-10-06 16:07:00 -0700
committerEric Sandall2010-10-06 16:07:07 -0700
commit1fbf75f7358a41b5bd12b31244928a0dd05e8d8b (patch)
tree2a80b4a159712e6a72bae5d8921687bfb249c01b
parent5e70efbd7267ceae5cc4993585abc26aee6b5720 (diff)
nfs-utils: Fix missing includes of <sys/stat.h>
Modified from http://cgit.openembedded.net/cgit.cgi/openembedded/commit/?id=798066d5b2183acc617b5b9d18066f02680aa9d6
-rw-r--r--net/nfs-utils/HISTORY4
-rwxr-xr-xnet/nfs-utils/PRE_BUILD5
-rw-r--r--net/nfs-utils/sysstat.patch36
3 files changed, 45 insertions, 0 deletions
diff --git a/net/nfs-utils/HISTORY b/net/nfs-utils/HISTORY
index eb8c280780..ee31401c2b 100644
--- a/net/nfs-utils/HISTORY
+++ b/net/nfs-utils/HISTORY
@@ -1,3 +1,7 @@
+2010-10-06 Eric Sandall <sandalle@sourcemage.org>
+ * PRE_BUILD: Apply sysstat.h
+ * sysstat.h: Fix missing includes of <sys/stat.h>
+
2010-04-08 Elisamuel Rest <ryuji@sourcemage.org>
* DEPENDS: changed portmap dependency to PORT-MAPPER provider
diff --git a/net/nfs-utils/PRE_BUILD b/net/nfs-utils/PRE_BUILD
new file mode 100755
index 0000000000..80d2faf9a1
--- /dev/null
+++ b/net/nfs-utils/PRE_BUILD
@@ -0,0 +1,5 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+
+message "${MESSAGE_COLOR}Applying sys/stat.h patch...${DEFAULT_COLOR}" &&
+patch -p1 < "$SPELL_DIRECTORY"/sysstat.patch
diff --git a/net/nfs-utils/sysstat.patch b/net/nfs-utils/sysstat.patch
new file mode 100644
index 0000000000..a9ec7f8c3f
--- /dev/null
+++ b/net/nfs-utils/sysstat.patch
@@ -0,0 +1,36 @@
+#
+# Modified from http://cgit.openembedded.net/cgit.cgi/openembedded/commit/?id=798066d5b2183acc617b5b9d18066f02680aa9d6
+#
+diff -Naur nfs-utils-1.1.6.orig/utils/exportfs/exportfs.c nfs-utils-1.1.6/utils/exportfs/exportfs.c
+--- nfs-utils-1.1.6.orig/utils/exportfs/exportfs.c 2010-10-06 16:03:41.545000011 -0700
++++ nfs-utils-1.1.6/utils/exportfs/exportfs.c 2010-10-06 16:04:14.495998584 -0700
+@@ -20,6 +20,7 @@
+ #include <getopt.h>
+ #include <netdb.h>
+ #include <errno.h>
++#include <sys/stat.h>
+ #include "xmalloc.h"
+ #include "misc.h"
+ #include "nfslib.h"
+diff -Naur nfs-utils-1.1.6.orig/utils/mount/mount.c nfs-utils-1.1.6/utils/mount/mount.c
+--- nfs-utils-1.1.6.orig/utils/mount/mount.c 2010-10-06 16:03:41.545000011 -0700
++++ nfs-utils-1.1.6/utils/mount/mount.c 2010-10-06 16:04:43.843999840 -0700
+@@ -24,6 +24,7 @@
+
+ #include <unistd.h>
+ #include <sys/types.h>
++#include <sys/stat.h>
+ #include <stdio.h>
+ #include <string.h>
+ #include <errno.h>
+diff -Naur nfs-utils-1.1.6.orig/utils/mount/network.c nfs-utils-1.1.6/utils/mount/network.c
+--- nfs-utils-1.1.6.orig/utils/mount/network.c 2010-10-06 16:03:41.545000011 -0700
++++ nfs-utils-1.1.6/utils/mount/network.c 2010-10-06 16:04:58.978000018 -0700
+@@ -36,6 +36,7 @@
+
+ #include <sys/types.h>
+ #include <sys/socket.h>
++#include <sys/stat.h>
+ #include <sys/wait.h>
+ #include <netinet/in.h>
+ #include <rpc/rpc.h>