summaryrefslogtreecommitdiff
path: root/lib/gtod.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gtod.h')
-rw-r--r--lib/gtod.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/gtod.h b/lib/gtod.h
new file mode 100644
index 000000000..3372416f7
--- /dev/null
+++ b/lib/gtod.h
@@ -0,0 +1,21 @@
+#ifndef GTOD_H
+# define GTOD_H 1
+
+# ifndef PARAMS
+# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
+# define PARAMS(Args) Args
+# else
+# define PARAMS(Args) ()
+# endif
+# endif
+
+void GTOD_init PARAMS ((void));
+
+/* This is a no-op on compliant systems. */
+# if GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER
+# define GETTIMEOFDAY_INIT() GTOD_init ()
+# else
+# define GETTIMEOFDAY_INIT() /* empty */
+# endif
+
+#endif