X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=support%2Fsys-time.c;h=1759ec0fcb8e23f2435d8cb45d0e846a53b9edcb;hb=fb8e77d1b769b1f5e7bcef9993267f02a758c02b;hp=376346a45743e6116f7ffae0ac68657d73b5b649;hpb=d49951ccf584ba637afb1dab7fff714478e3174d;p=mono.git diff --git a/support/sys-time.c b/support/sys-time.c index 376346a4574..1759ec0fcb8 100644 --- a/support/sys-time.c +++ b/support/sys-time.c @@ -90,10 +90,10 @@ static inline struct timeval* copy_utimes (struct timeval* to, struct Mono_Posix_Timeval *from) { if (from) { - to[0].tv_sec = from->tv_sec; - to[0].tv_usec = from->tv_usec; - to[1].tv_sec = from->tv_sec; - to[1].tv_usec = from->tv_usec; + to[0].tv_sec = from[0].tv_sec; + to[0].tv_usec = from[0].tv_usec; + to[1].tv_sec = from[1].tv_sec; + to[1].tv_usec = from[1].tv_usec; return to; } @@ -124,6 +124,7 @@ Mono_Posix_Syscall_lutimes(const char *filename, struct Mono_Posix_Timeval *tv) } #endif /* def HAVE_LUTIMES */ +#if HAVE_FUTIMES gint32 Mono_Posix_Syscall_futimes(int fd, struct Mono_Posix_Timeval *tv) { @@ -134,6 +135,7 @@ Mono_Posix_Syscall_futimes(int fd, struct Mono_Posix_Timeval *tv) return futimes (fd, ptv); } +#endif /* def HAVE_FUTIMES */ G_END_DECLS