]> git.cworth.org Git - notmuch/blobdiff - compat/have_timegm.c
timegm: add portable implementation (Solaris support)
[notmuch] / compat / have_timegm.c
diff --git a/compat/have_timegm.c b/compat/have_timegm.c
new file mode 100644 (file)
index 0000000..b62b793
--- /dev/null
@@ -0,0 +1,7 @@
+#include <time.h>
+#include "compat.h"
+
+int main()
+{
+    return (int) timegm((struct tm *)0);
+}