From: Felix Fietkau Date: Thu, 3 Jan 2013 12:50:59 +0000 (+0100) Subject: fix compile errors on linux X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuhttpd.git;a=commitdiff_plain;h=9c767787dba81bd5713e1a45eef8b381e7d4b79b fix compile errors on linux --- diff --git a/auth.c b/auth.c index c27488f..afab2c0 100644 --- a/auth.c +++ b/auth.c @@ -17,6 +17,8 @@ * limitations under the License. */ +#define _GNU_SOURCE +#define _XOPEN_SOURCE 700 #include "uhttpd.h" static LIST_HEAD(auth_realms); diff --git a/main.c b/main.c index 100e285..26dc55c 100644 --- a/main.c +++ b/main.c @@ -17,6 +17,8 @@ * limitations under the License. */ +#define _GNU_SOURCE +#define _XOPEN_SOURCE 700 #include #include #include @@ -25,6 +27,7 @@ #include #include #include +#include #include