move timegm declaration to utils.h
authorFelix Fietkau <nbd@openwrt.org>
Wed, 2 Jan 2013 18:48:37 +0000 (19:48 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 2 Jan 2013 18:48:37 +0000 (19:48 +0100)
file.c
utils.h

diff --git a/file.c b/file.c
index 8ccb06b15e62c477a5542860cde38c40b7eaef05..9268577f833342bba95c00472e56b8f22eca7d83 100644 (file)
--- 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 a53c256508c2d4bab5797d3de72ce694fddd730c..ab00399b6654071a1e38e061e6c909839aaa2cb6 100644 (file)
--- 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__