From 122831dc17739c8d45ca1906eef84c7d2aa20404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Sun, 11 Oct 2009 14:48:08 +0000 Subject: [PATCH] Fix some compile problems from header inclusion reorder patch git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2625 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/fdevent.h | 9 ++++++--- src/fdevent_linux_rtsig.c | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/fdevent.h b/src/fdevent.h index d6ee3f2f..7eaee471 100644 --- a/src/fdevent.h +++ b/src/fdevent.h @@ -8,12 +8,15 @@ #include "settings.h" #include "bitset.h" +#if defined HAVE_STDINT_H +# include +#elif defined HAVE_INTTYPES_H +# include +#endif + /* select event-system */ #if defined(HAVE_EPOLL_CTL) && defined(HAVE_SYS_EPOLL_H) -# if defined HAVE_STDINT_H -# include -# endif # define USE_LINUX_EPOLL # include #endif diff --git a/src/fdevent_linux_rtsig.c b/src/fdevent_linux_rtsig.c index 624c9809..e04d9cf8 100644 --- a/src/fdevent_linux_rtsig.c +++ b/src/fdevent_linux_rtsig.c @@ -11,6 +11,7 @@ #include #include +#define __USE_GNU /* a hack in my eyes, should work with _GNU_SOURCE */ #include #ifdef USE_LINUX_SIGIO