X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=support%2Fsys-time.c;h=83afa0c8466b65f1a565d529cd01af9a7a728510;hb=HEAD;hp=1309f2a975342252de9335d4245c1b955bf35441;hpb=2ab02d99c44321dfc73fd10bee7a6fbf7016116b;p=mono.git diff --git a/support/sys-time.c b/support/sys-time.c index 1309f2a9753..83afa0c8466 100644 --- a/support/sys-time.c +++ b/support/sys-time.c @@ -47,6 +47,11 @@ Mono_Posix_Syscall_settimeofday ( struct Mono_Posix_Timeval *tv, struct Mono_Posix_Timezone *tz) { +#if defined(__HAIKU__) + /* FIXME: Haiku doesn't support this either, consider + using set_real_time_clock instead? */ + return -1; +#else struct timeval _tv = {0}; struct timeval *ptv = NULL; struct timezone _tz = {0}; @@ -67,27 +72,7 @@ Mono_Posix_Syscall_settimeofday ( r = settimeofday (ptv, ptz); return r; -} - -/* Remove this at some point in the future */ -gint32 -Mono_Posix_Syscall_utimes_bad (const char *filename, - struct Mono_Posix_Timeval *tv); - -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); +#endif } static inline struct timeval*