about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--sysdeps/unix/sysv/linux/fcntl.c9
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a4894f7185..754f793070 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
 	* sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
 	prototype to use variable argument lists and get the possible one
 	argument via va_arg.
+	* sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
 
 2003-09-04  Ulrich Drepper  <drepper@redhat.com>
 
diff --git a/sysdeps/unix/sysv/linux/fcntl.c b/sysdeps/unix/sysv/linux/fcntl.c
index 33651d3c10..a6793bc526 100644
--- a/sysdeps/unix/sysv/linux/fcntl.c
+++ b/sysdeps/unix/sysv/linux/fcntl.c
@@ -26,8 +26,15 @@
 
 
 int
-__fcntl_nocancel (int fd, int cmd, void *arg)
+__fcntl_nocancel (int fd, int cmd, ...)
 {
+  va_list ap;
+  void *arg;
+
+  va_start (ap, cmd);
+  arg = va_arg (ap, void *);
+  va_end (ap);
+
   return INLINE_SYSCALL (fcntl, 3, fd, cmd, arg);
 }