about summary refs log tree commit diff
path: root/blaze822.h
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-08-08 16:28:25 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-08-08 16:28:25 +0200
commitd458439970caffc3bdebc3c139f29e02b285db55 (patch)
treea0bde4845187c09f37321e66e0aaec27351423ea /blaze822.h
parent20dae518c4abaac33226b5e8ae85d0de1a1b226e (diff)
downloadmblaze-d458439970caffc3bdebc3c139f29e02b285db55.tar.gz
mblaze-d458439970caffc3bdebc3c139f29e02b285db55.tar.xz
mblaze-d458439970caffc3bdebc3c139f29e02b285db55.zip
import and use timegm from musl
It's ridiculous this function is not in the standards.
Diffstat (limited to 'blaze822.h')
-rw-r--r--blaze822.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/blaze822.h b/blaze822.h
index 2ffc031..0808239 100644
--- a/blaze822.h
+++ b/blaze822.h
@@ -1,6 +1,8 @@
-#include <stdint.h>
 #include <sys/types.h>
 
+#include <stdint.h>
+#include <time.h>
+
 struct message;
 
 // blaze822.c
@@ -71,3 +73,7 @@ char *blaze822_home_file(char *basename);
 // filter.c
 
 int filter(char *input, size_t inlen, char *cmd, char **outputo, size_t *outleno);
+
+// mygmtime.c
+
+time_t tm_to_secs(const struct tm *tm);