diff options
author | Leah Neukirchen <leah@vuxu.org> | 2020-05-08 22:28:29 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2020-05-08 22:28:29 +0200 |
commit | b2e5284c7420a6636f056cfdaf5646463bc9ce53 (patch) | |
tree | 6e0b3fefe655831e71eb88891315ae8a8e6dc921 | |
parent | 0d5dd415c34acbe6e154f3b0140c5a98e2892f34 (diff) | |
download | hittpd-b2e5284c7420a6636f056cfdaf5646463bc9ce53.tar.gz hittpd-b2e5284c7420a6636f056cfdaf5646463bc9ce53.tar.xz hittpd-b2e5284c7420a6636f056cfdaf5646463bc9ce53.zip |
add strptime prototype for glibc, use default visibility
-rw-r--r-- | hittpd.c | 8 |
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; |