]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* 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 f3622bb627ce08574a432f2780050d9228e98712..b3c1302937b1a64a7f3cd910ac5ffe61879a825b 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 e2f823859635d0da0ac1175f43d7316071b29850..ff9af6fa058ffcf5a72d2576b8143f373819c321 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 df430ffe46e5e6bea1329b64f81539786f24cda1..2031adda105be326ee8cf25455d438a926783779 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