summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJoachim Schmitz <schmitz@hp.com>2010-05-30 21:25:30 +0200
committerBjörn Jacke <bj@sernet.de>2010-05-30 21:28:17 +0200
commit3030d9db4ea7ddecc2e8bbef225738e0336e9be4 (patch)
tree21c23d804778f81e476adcdbc5a42023761b96ac /source3/include
parentc2a3792e72cb534bafce3808c4a7b9f6948e8895 (diff)
downloadsamba-3030d9db4ea7ddecc2e8bbef225738e0336e9be4.tar.gz
samba-3030d9db4ea7ddecc2e8bbef225738e0336e9be4.tar.bz2
samba-3030d9db4ea7ddecc2e8bbef225738e0336e9be4.zip
s3: define timespec before we use it
this fixes #7464 Signed-off-by: Björn Jacke <bj@sernet.de>
Diffstat (limited to 'source3/include')
-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,