nfs-utils: add patch for missing include sys/stat.h
authorMartin Jansa <Martin.Jansa@gmail.com>
Wed, 26 May 2010 08:34:11 +0000 (10:34 +0200)
committerMartin Jansa <Martin.Jansa@gmail.com>
Wed, 26 May 2010 09:07:36 +0000 (11:07 +0200)
* without, it fails with undefined reference to S_ISREG (the same for S_ISDIR)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
recipes/nfs-utils/nfs-utils-1.1.2/nfs-utils-S_ISREG-missing-include.patch [new file with mode: 0644]
recipes/nfs-utils/nfs-utils_1.1.2.bb

diff --git a/recipes/nfs-utils/nfs-utils-1.1.2/nfs-utils-S_ISREG-missing-include.patch b/recipes/nfs-utils/nfs-utils-1.1.2/nfs-utils-S_ISREG-missing-include.patch
new file mode 100644 (file)
index 0000000..6b2c75e
--- /dev/null
@@ -0,0 +1,33 @@
+diff -uNr nfs-utils-1.1.2.orig//utils/exportfs/exportfs.c nfs-utils-1.1.2/utils/exportfs/exportfs.c
+--- nfs-utils-1.1.2.orig//utils/exportfs/exportfs.c    2008-03-14 16:46:29.000000000 +0100
++++ nfs-utils-1.1.2/utils/exportfs/exportfs.c  2010-05-26 10:31:23.000000000 +0200
+@@ -19,6 +19,7 @@
+ #include <getopt.h>
+ #include <netdb.h>
+ #include <errno.h>
++#include <sys/stat.h>
+ #include "xmalloc.h"
+ #include "misc.h"
+ #include "nfslib.h"
+diff -uNr nfs-utils-1.1.2.orig//utils/mount/mount.c nfs-utils-1.1.2/utils/mount/mount.c
+--- nfs-utils-1.1.2.orig//utils/mount/mount.c  2008-03-14 16:46:29.000000000 +0100
++++ nfs-utils-1.1.2/utils/mount/mount.c        2010-05-26 10:31:32.000000000 +0200
+@@ -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 -uNr nfs-utils-1.1.2.orig//utils/mount/network.c nfs-utils-1.1.2/utils/mount/network.c
+--- nfs-utils-1.1.2.orig//utils/mount/network.c        2008-03-14 16:46:29.000000000 +0100
++++ nfs-utils-1.1.2/utils/mount/network.c      2010-05-26 10:31:35.000000000 +0200
+@@ -37,6 +37,7 @@
+ #include <rpc/pmap_prot.h>
+ #include <rpc/pmap_clnt.h>
+ #include <sys/socket.h>
++#include <sys/stat.h>
+ #include "xcommon.h"
+ #include "mount.h"
index a663a64..be45310 100644 (file)
@@ -3,13 +3,14 @@ PRIORITY = "optional"
 SECTION = "console/network"
 LICENSE = "GPL"
 
-PR = "r7"
+PR = "r8"
 
 DEPENDS = "util-linux-ng tcp-wrappers libevent"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/nfs/nfs-utils-${PV}.tar.gz \
        file://nfs-utils-tools-unset-cflags.patch \
        file://nfs-utils-uclibc-compile.patch \
+       file://nfs-utils-S_ISREG-missing-include.patch \
        file://nfsserver \
    "