summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/includes.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 132d37380f..be3b66fe24 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -440,6 +440,14 @@ typedef long blksize_t;
typedef long blkcnt_t;
#endif
+#ifndef HAVE_STRUCT_TIMESPEC
+struct timespec {
+ time_t tv_sec; /* Seconds. */
+ long tv_nsec; /* Nanoseconds. */
+};
+#endif
+
+
/*
* Type for stat structure.
*/
@@ -552,13 +560,6 @@ typedef struct stat_ex SMB_STRUCT_STAT;
# endif
#endif
-#ifndef HAVE_STRUCT_TIMESPEC
-struct timespec {
- time_t tv_sec; /* Seconds. */
- long tv_nsec; /* Nanoseconds. */
-};
-#endif
-
enum timestamp_set_resolution {
TIMESTAMP_SET_SECONDS = 0,
TIMESTAMP_SET_MSEC,