diff --git a/mongoose.c b/mongoose.c index 787f4cc4..1d27a8a3 100644 --- a/mongoose.c +++ b/mongoose.c @@ -639,6 +639,7 @@ void mg_http_reply(struct mg_connection *c, int code, const char *headers, if (buf != mem) free(buf); } +#if MG_ENABLE_FS static void http_cb(struct mg_connection *, int, void *, void *); static void restore_http_cb(struct mg_connection *c) { struct http_data *d = (struct http_data *) c->pfn_data; @@ -648,7 +649,6 @@ static void restore_http_cb(struct mg_connection *c) { free(d); } -#if MG_ENABLE_FS char *mg_http_etag(char *buf, size_t len, struct stat *st) { snprintf(buf, len, "\"%lx.%lu\"", (unsigned long) st->st_mtime, (unsigned long) st->st_size); diff --git a/src/http.c b/src/http.c index 76f639d0..691ebd13 100644 --- a/src/http.c +++ b/src/http.c @@ -240,6 +240,7 @@ void mg_http_reply(struct mg_connection *c, int code, const char *headers, if (buf != mem) free(buf); } +#if MG_ENABLE_FS static void http_cb(struct mg_connection *, int, void *, void *); static void restore_http_cb(struct mg_connection *c) { struct http_data *d = (struct http_data *) c->pfn_data; @@ -249,7 +250,6 @@ static void restore_http_cb(struct mg_connection *c) { free(d); } -#if MG_ENABLE_FS char *mg_http_etag(char *buf, size_t len, struct stat *st) { snprintf(buf, len, "\"%lx.%lu\"", (unsigned long) st->st_mtime, (unsigned long) st->st_size);