summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormOo <moo.lighttpd@gmail.com>2005-10-01 11:05:30 +0000
committermOo <moo.lighttpd@gmail.com>2005-10-01 11:05:30 +0000
commit58e4c26d94635c97d5089c33441bb6bc59ee0588 (patch)
treeccb79e93cfdee69fbb44cb53840c7a1b89d8d45e
parentb2ee4babebf75d393e3bd9d93bed12b3f5b1c825 (diff)
downloadlighttpd-git-58e4c26d94635c97d5089c33441bb6bc59ee0588.tar.gz
remove warning for strptime
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@769 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r--src/http-header-glue.c2
-rw-r--r--src/mod_staticfile.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/http-header-glue.c b/src/http-header-glue.c
index 44407a66..5547b332 100644
--- a/src/http-header-glue.c
+++ b/src/http-header-glue.c
@@ -1,3 +1,5 @@
+#define _GNU_SOURCE
+
#include <string.h>
#include <errno.h>
#include <time.h>
diff --git a/src/mod_staticfile.c b/src/mod_staticfile.c
index 122fb0aa..57ce9aef 100644
--- a/src/mod_staticfile.c
+++ b/src/mod_staticfile.c
@@ -2,9 +2,6 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#define _XOPEN_SOURCE /* glibc 2.0 */
-#define __USE_XOPEN /* glibc 2.3 */
-#include <time.h>
#include "base.h"
#include "log.h"