diff options
| author | root <root> | 2010-12-01 07:30:38 +0000 | 
|---|---|---|
| committer | root <root> | 2010-12-01 07:30:38 +0000 | 
| commit | 31d3c116144301b51fc50ad7934fe6f988b7029c (patch) | |
| tree | 208e7ae4233f9db310149fb64e176cab6cce921f /eio.c | |
| parent | c1a31f9b5959a69750e5d2e75e7aaafde7f53f76 (diff) | |
futimes/utimes
Diffstat (limited to 'eio.c')
| -rw-r--r-- | eio.c | 13 | 
1 files changed, 9 insertions, 4 deletions
@@ -818,12 +818,10 @@ eio__pwrite (int fd, void *buf, size_t count, off_t offset)  }  #endif -#ifndef HAVE_FUTIMES +#ifndef HAVE_UTIMES  # undef utimes -# undef futimes -# define utimes(path,times)  eio__utimes  (path, times) -# define futimes(fd,times)   eio__futimes (fd, times) +# define utimes(path,times)  eio__utimes (path, times)  static int  eio__utimes (const char *filename, const struct timeval times[2]) @@ -841,6 +839,13 @@ eio__utimes (const char *filename, const struct timeval times[2])      return utime (filename, 0);  } +#endif + +#ifndef HAVE_FUTIMES + +# undef futimes +# define futimes(fd,times) eio__futimes (fd, times) +  static int eio__futimes (int fd, const struct timeval tv[2])  {    errno = ENOSYS;  | 
