Commit 18b08180 authored by Lennart Poettering's avatar Lennart Poettering

build-system: define _GNU_SOURCE centrally

Instead of having everyone define _GNU_SOURCE and similar macros
seperately, simply do so centrally by using AC_USE_SYSTEM_EXTENSIONS
parent 44f3a146
......@@ -24,7 +24,6 @@
#include <config.h>
#define _GNU_SOURCE
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
......
......@@ -57,6 +57,7 @@ AC_SUBST(DBUS_VERSION)
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CXX
AC_USE_SYSTEM_EXTENSIONS
AC_ISC_POSIX
AC_HEADER_STDC
AC_C_INLINE
......
......@@ -22,7 +22,7 @@
*
*/
#define _GNU_SOURCE
#include <config.h>
#include "dbus-internals.h"
#include "dbus-sysdeps.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment