aboutsummaryrefslogtreecommitdiffhomepage
path: root/compat/have_timegm.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/have_timegm.c')
-rw-r--r--compat/have_timegm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/compat/have_timegm.c b/compat/have_timegm.c
new file mode 100644
index 00000000..b62b7937
--- /dev/null
+++ b/compat/have_timegm.c
@@ -0,0 +1,7 @@
+#include <time.h>
+#include "compat.h"
+
+int main()
+{
+ return (int) timegm((struct tm *)0);
+}