From 0bf7e921683e2a6ef4b24d44f11436a6b9f20484 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 2 Jan 2013 19:48:37 +0100 Subject: [PATCH] move timegm declaration to utils.h --- file.c | 4 ---- utils.h | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/file.c b/file.c index 8ccb06b..9268577 100644 --- a/file.c +++ b/file.c @@ -246,10 +246,6 @@ uh_path_lookup(struct client *cl, const char *url) return p.phys ? &p : NULL; } -#ifdef __APPLE__ -time_t timegm (struct tm *tm); -#endif - static const char * uh_file_mime_lookup(const char *path) { struct mimetype *m = &uh_mime_types[0]; diff --git a/utils.h b/utils.h index a53c256..ab00399 100644 --- a/utils.h +++ b/utils.h @@ -53,6 +53,9 @@ static inline void clearenv(void) extern char **environ; *environ = NULL; } + +time_t timegm (struct tm *tm); + #endif #ifdef __GNUC__ -- 2.11.0