From ed820c1850832cf7033b77a665481ff9f879d7df Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 24 Feb 2016 09:42:06 -0600 Subject: [PATCH] THTTPD: Include timers.h before libhttpd.h to avoid and undefined type error. Noted by Matt Poppe. --- netutils/thttpd/libhttpd.c | 4 ++-- netutils/thttpd/thttpd_cgi.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/netutils/thttpd/libhttpd.c b/netutils/thttpd/libhttpd.c index 6c2e5199c..8d9b32031 100644 --- a/netutils/thttpd/libhttpd.c +++ b/netutils/thttpd/libhttpd.c @@ -2,7 +2,7 @@ * netutils/thttpd/libhttpd.c * HTTP Protocol Library * - * Copyright (C) 2009, 2011, 2013, 2015 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2011, 2013, 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Derived from the file of the same name in the original THTTPD package: @@ -64,11 +64,11 @@ #include #include "config.h" +#include "timers.h" #include "libhttpd.h" #include "thttpd_alloc.h" #include "thttpd_strings.h" #include "thttpd_cgi.h" -#include "timers.h" #include "tdate_parse.h" #include "fdwatch.h" diff --git a/netutils/thttpd/thttpd_cgi.c b/netutils/thttpd/thttpd_cgi.c index 260009c54..d88fb6bc2 100644 --- a/netutils/thttpd/thttpd_cgi.c +++ b/netutils/thttpd/thttpd_cgi.c @@ -2,7 +2,7 @@ * netutils/thttpd/thttpd_cgi.c * CGI support * - * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2011, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Derived from the file libhttpd.c in the original THTTPD package: @@ -59,10 +59,10 @@ #include #include "config.h" +#include "timers.h" #include "libhttpd.h" #include "thttpd_alloc.h" #include "thttpd_strings.h" -#include "timers.h" #include "fdwatch.h" #if defined(CONFIG_THTTPD) && defined(CONFIG_THTTPD_CGI_PATTERN)