summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--hittpd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/hittpd.c b/hittpd.c
index abf793e..ab94b30 100644
--- a/hittpd.c
+++ b/hittpd.c
@@ -23,9 +23,6 @@
 
 #define TIMEOUT 60
 
-#define _XOPEN_SOURCE 700
-#define _DEFAULT_SOURCE
-
 #ifdef __linux__
 #include <sys/sendfile.h>
 #endif
@@ -53,6 +50,11 @@
 
 #include "http_parser.h"
 
+#ifdef __GLIBC__
+// POSIX 2008 is hard, let's go shopping.
+char *strptime(const char *restrict, const char *restrict, struct tm *restrict);
+#endif
+
 struct conn_data {
 	enum { NONE, HOST, IMS, RANGE, OTHER, SENDING } state;
 	char *host;