Skip to content

Commit

Permalink
* sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
Browse files Browse the repository at this point in the history
	function if it is not defined.
	* sysdeps/unix/sysv/linux/pwritev.c: Likewise.
  • Loading branch information
Ulrich Drepper committed Apr 9, 2009
1 parent 28b2771 commit f9fe75e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 2 additions & 0 deletions sysdeps/unix/sysv/linux/preadv.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@
# 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
Expand Down
2 changes: 2 additions & 0 deletions sysdeps/unix/sysv/linux/pwritev.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@
# 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
Expand Down

0 comments on commit f9fe75e

Please sign in to comment.