]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_io: include headers for preadv/pwritev
authorEric Sandeen <sandeen@sandeen.net>
Wed, 10 Oct 2012 03:40:11 +0000 (03:40 +0000)
committerMark Tinguely <tinguely@eagdhcp-232-125.americas.sgi.com>
Thu, 11 Oct 2012 20:18:06 +0000 (15:18 -0500)
We need to include uio.h to avoid:

    [CC]     pread.o
pread.c: In function `do_pread':
pread.c:198: warning: implicit declaration of function `preadv'
    [CC]     pwrite.o
pwrite.c: In function `do_pwrite':
pwrite.c:85: warning: implicit declaration of function `pwritev'

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Mark Tinguely <tinguely@sgi.com>
include/builddefs.in
io/pread.c
io/pwrite.c

index 81ebfcdb9a1d7315107da088ccdca2ecf039c2c8..04590d2f8046015c123416982f72c7e88ac2f88e 100644 (file)
@@ -106,7 +106,7 @@ GCCFLAGS = -funsigned-char -fno-strict-aliasing -Wall
 #         -Wbitwise -Wno-transparent-union -Wno-old-initializer -Wno-decl
 
 ifeq ($(PKG_PLATFORM),linux)
-PCFLAGS = -D_GNU_SOURCE -D_XOPEN_SOURCE=500 -D_FILE_OFFSET_BITS=64 $(GCCFLAGS)
+PCFLAGS = -D_GNU_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_FILE_OFFSET_BITS=64 $(GCCFLAGS)
 DEPENDFLAGS = -D__linux__
 endif
 ifeq ($(PKG_PLATFORM),gnukfreebsd)
index 0b9454badb6449ea15a0bae5efe814ca2e85d442..7e2ed7d644bc47878a463b6a37e2830b85aafb10 100644 (file)
@@ -16,6 +16,7 @@
  * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
+#include <sys/uio.h>
 #include <xfs/xfs.h>
 #include <xfs/command.h>
 #include <xfs/input.h>
index 3689960fa066bd27384a29270fc5dc4870499886..73acbac6f9adea3c842f79be8efa2e3c07847fae 100644 (file)
@@ -16,6 +16,7 @@
  * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
+#include <sys/uio.h>
 #include <xfs/xfs.h>
 #include <xfs/command.h>
 #include <xfs/input.h>