* sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
authorUlrich Drepper <drepper@redhat.com>
Thu, 9 Apr 2009 21:45:21 +0000 (21:45 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 9 Apr 2009 21:45:21 +0000 (21:45 +0000)
function if it is not defined.
* sysdeps/unix/sysv/linux/pwritev.c: Likewise.

ChangeLog
sysdeps/unix/sysv/linux/preadv.c
sysdeps/unix/sysv/linux/pwritev.c

index f3622bb..b3c1302 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
+       function if it is not defined.
+       * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
+
        * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
        have preadv/pwritev in 2.6.30.
 
index e2f8238..ff9af6f 100644 (file)
 # define OFF_T off_t
 #endif
 
+#ifndef __ASSUME_PREADV
 static ssize_t PREADV_REPLACEMENT (int, __const struct iovec *,
                                   int, OFF_T) internal_function;
+#endif
 
 
 ssize_t
index df430ff..2031add 100644 (file)
 # define OFF_T off_t
 #endif
 
+#ifndef __ASSUME_PWRITEV
 static ssize_t PWRITEV_REPLACEMENT (int, __const struct iovec *,
                                    int, OFF_T) internal_function;
+#endif
 
 
 ssize_t