X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=support%2Fsys-time.c;h=a1c0ba0b184ee7326e5788adb0371215b5703109;hb=4791a674a1bf8cc74691974e363d9c5f5dd060a3;hp=fdb8b63cd6ab5a6b61d8497fe0eb8acbc9866d98;hpb=5ebb3b6c77a8f28f8531bbc07510bb7258e8fc07;p=mono.git diff --git a/support/sys-time.c b/support/sys-time.c index fdb8b63cd6a..a1c0ba0b184 100644 --- a/support/sys-time.c +++ b/support/sys-time.c @@ -69,23 +69,6 @@ Mono_Posix_Syscall_settimeofday ( return r; } -/* Remove this at some point in the future */ -gint32 -Mono_Posix_Syscall_utimes_bad (const char *filename, - struct Mono_Posix_Timeval *tv) -{ - struct timeval _tv; - struct timeval *ptv = NULL; - - if (tv) { - _tv.tv_sec = tv->tv_sec; - _tv.tv_usec = tv->tv_usec; - ptv = &_tv; - } - - return utimes (filename, ptv); -} - static inline struct timeval* copy_utimes (struct timeval* to, struct Mono_Posix_Timeval *from) { @@ -124,6 +107,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 +118,7 @@ Mono_Posix_Syscall_futimes(int fd, struct Mono_Posix_Timeval *tv) return futimes (fd, ptv); } +#endif /* def HAVE_FUTIMES */ G_END_DECLS