summaryrefslogtreecommitdiff
path: root/lib/replace/system
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-03-03 16:26:48 +0100
committerGünther Deschner <gd@samba.org>2011-03-04 00:28:27 +0100
commit9167d70e77c2f4c8e6de64fbf06bd3bee23542d2 (patch)
tree92ca807066b603888d4bf271b0452577dbc2d35b /lib/replace/system
parenta5d54579ea949f4cd7c975c3f5d0006a90777735 (diff)
downloadsamba-9167d70e77c2f4c8e6de64fbf06bd3bee23542d2.tar.gz
samba-9167d70e77c2f4c8e6de64fbf06bd3bee23542d2.tar.bz2
samba-9167d70e77c2f4c8e6de64fbf06bd3bee23542d2.zip
libreplace: move "struct timespec" checks into libreplace (where timespec is already used).
Bjoern, Metze, please check. Guenther
Diffstat (limited to 'lib/replace/system')
-rw-r--r--lib/replace/system/time.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/replace/system/time.h b/lib/replace/system/time.h
index 5fce4dbc45..b6d2609289 100644
--- a/lib/replace/system/time.h
+++ b/lib/replace/system/time.h
@@ -46,6 +46,13 @@ struct utimbuf {
};
#endif
+#ifndef HAVE_STRUCT_TIMESPEC
+struct timespec {
+ time_t tv_sec; /* Seconds. */
+ long tv_nsec; /* Nanoseconds. */
+};
+#endif
+
#ifndef HAVE_MKTIME
/* define is in "replace.h" */
time_t rep_mktime(struct tm *t);