~lastrosade/jsthttpd

7d214e7b6e068d874ee6b9d624753044c6fb8610 — Marcos Mello 6 years ago 65ed2e7
src/libhttpd.c: defines must happen after thttpd.h and version.h includes

X-sthttpd-Bug: 5
X-sthttpd-Bug-URL: http://opensource.dyc.edu/bugzilla3/show_bug.cgi?id=5

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
1 files changed, 6 insertions(+), 6 deletions(-)

M src/libhttpd.c
M src/libhttpd.c => src/libhttpd.c +6 -6
@@ 28,12 28,6 @@

#include <config.h>

#ifdef SHOW_SERVER_VERSION
#define EXPOSED_SERVER_SOFTWARE SERVER_SOFTWARE
#else /* SHOW_SERVER_VERSION */
#define EXPOSED_SERVER_SOFTWARE "thttpd"
#endif /* SHOW_SERVER_VERSION */

//system headers
#include <sys/types.h>
#include <sys/param.h>


@@ 86,6 80,12 @@ extern char* crypt( const char* key, const char* setting );
#include <timers.h>
#include <version.h>

#ifdef SHOW_SERVER_VERSION
#define EXPOSED_SERVER_SOFTWARE SERVER_SOFTWARE
#else /* SHOW_SERVER_VERSION */
#define EXPOSED_SERVER_SOFTWARE "sthttpd"
#endif /* SHOW_SERVER_VERSION */

#ifndef STDIN_FILENO
#define STDIN_FILENO 0
#endif