From 06f313e361a523605ba6d4c9cdc67a7353cd367c Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 9 Jan 2006 21:55:11 +0000 Subject: Updated to fedora-glibc-20060109T2152 --- sysdeps/unix/sysv/linux/futimes.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sysdeps/unix/sysv/linux/futimes.c') diff --git a/sysdeps/unix/sysv/linux/futimes.c b/sysdeps/unix/sysv/linux/futimes.c index 0c4be2b67f..b307c3ff64 100644 --- a/sysdeps/unix/sysv/linux/futimes.c +++ b/sysdeps/unix/sysv/linux/futimes.c @@ -1,5 +1,5 @@ /* futimes -- change access and modification times of open file. Linux version. - Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 2002,2003,2005,2006 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -25,7 +25,7 @@ #include #include -#include "kernel-features.h" +#include /* Change the access time of FILE to TVP[0] and the modification time of FILE to TVP[1], but do not follow symlinks. @@ -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; -- cgit v1.2.3