2007-05-12 Zoltan Varga <vargaz@gmail.com>
[mono.git] / support / sys-time.c
index d9a2e0f6e51f4737520247a1338e0ea8ecabd832..376346a45743e6116f7ffae0ac68657d73b5b649 100644 (file)
@@ -4,7 +4,7 @@
  * Authors:
  *   Jonathan Pryor (jonpryor@vt.edu)
  *
- * Copyright (C) 2004 Jonathan Pryor
+ * Copyright (C) 2004-2006 Jonathan Pryor
  */
 
 #include <sys/types.h>
 
 G_BEGIN_DECLS
 
-struct Mono_Posix_Timeval {
-       /* time_t */      mph_time_t  tv_sec;   /* seconds */
-       /* suseconds_t */ gint64      tv_usec;  /* microseconds */
-};
-
-struct Mono_Posix_Timezone {
-       int tz_minuteswest;  /* minutes W of Greenwich */
-       int tz_dsttime;      /* ignored */
-};
-
 gint32
 Mono_Posix_Syscall_gettimeofday (
        struct Mono_Posix_Timeval *tv,
@@ -121,6 +111,7 @@ Mono_Posix_Syscall_utimes(const char *filename, struct Mono_Posix_Timeval *tv)
        return utimes (filename, ptv);
 }
 
+#ifdef HAVE_LUTIMES
 gint32
 Mono_Posix_Syscall_lutimes(const char *filename, struct Mono_Posix_Timeval *tv)
 {
@@ -131,6 +122,7 @@ Mono_Posix_Syscall_lutimes(const char *filename, struct Mono_Posix_Timeval *tv)
 
        return lutimes (filename, ptv);
 }
+#endif /* def HAVE_LUTIMES */
 
 gint32
 Mono_Posix_Syscall_futimes(int fd, struct Mono_Posix_Timeval *tv)