* sysdeps/unix/sysv/linux/futimes.c [!__NR_fcntl && __NR_fcntl64]: Use
authorRoland McGrath <roland@gnu.org>
Sun, 8 Jan 2006 08:27:49 +0000 (08:27 +0000)
committerRoland McGrath <roland@gnu.org>
Sun, 8 Jan 2006 08:27:49 +0000 (08:27 +0000)
fcntl64 syscall instead.

ChangeLog
sysdeps/unix/sysv/linux/futimes.c

index 9e07a40..a197726 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-01-08  Roland McGrath  <roland@redhat.com>
 
+       * sysdeps/unix/sysv/linux/futimes.c [!__NR_fcntl && __NR_fcntl64]: Use
+       fcntl64 syscall instead.
+
        * stdio-common/tst-fmemopen2.c (do_test): Add a cast.
        * stdio-common/printf-parsemb.c (__find_specmb): Likewise.
 
index 6614c37..b307c3f 100644 (file)
@@ -88,6 +88,9 @@ __futimes (int fd, const struct timeval tvp[2])
       case ENOENT:
        /* Validate the file descriptor by letting fcntl set errno to
           EBADF if it's bogus.  Otherwise it's a /proc issue.  */
+#if !defined __NR_fcntl && defined __NR_fcntl64
+# define __NR_fcntl __NR_fcntl64
+#endif
        if (INLINE_SYSCALL (fcntl, 3, fd, F_GETFD, 0) != -1)
          __set_errno (ENOSYS);
        break;