always define _GNU_SOURCE

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2643 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.24
Stefan Bühler 14 years ago
parent ea903c7512
commit 67cb38d0ca

@ -50,6 +50,7 @@ NEWS
* Fix segfault on invalid config "duplicate else conditions" (fixes #2065)
* mod_usertrack: Use T_CONFIG_INT for max-age, solves range problem (#1455)
* mod_accesslog: configurable timestamp logging (fixes #1479)
* always define _GNU_SOURCE
- 1.4.23 - 2009-06-19
* Added some extra warning options in cmake and fix the resulting warnings (unused/static functions)

@ -4,6 +4,7 @@
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "settings.h"
#include <sys/types.h>
#include <sys/time.h>
@ -23,7 +24,6 @@
#include "array.h"
#include "chunk.h"
#include "keyvalue.h"
#include "settings.h"
#include "fdevent.h"
#include "sys-socket.h"
#include "splaytree.h"

@ -11,9 +11,6 @@
#include <signal.h>
#include <limits.h>
#ifndef __USE_GNU
# define __USE_GNU /* a hack in my eyes, should work with _GNU_SOURCE */
#endif
#include <fcntl.h>
#ifdef USE_LINUX_SIGIO

@ -8,10 +8,6 @@
#include <string.h>
#include <errno.h>
#ifndef _GNU_SOURCE
# define _GNU_SOURCE
#endif
#include <time.h>
/*

@ -1,6 +1,14 @@
#ifndef _LIGHTTPD_SETTINGS_H_
#define _LIGHTTPD_SETTINGS_H_
#ifndef _GNU_SOURCE
# define _GNU_SOURCE
#endif
#ifndef __USE_GNU
# define __USE_GNU /* a hack in my eyes, <fcntl.h> F_SETSIG should work with _GNU_SOURCE */
#endif
#define BV(x) (1 << x)
#define INET_NTOP_CACHE_MAX 4

Loading…
Cancel
Save