mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-04-30 22:38:06 +02:00
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
This commit is contained in:
parent
44f3a1465a
commit
18b08180aa
3 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,6 @@
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@ AC_SUBST(DBUS_VERSION)
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AM_PROG_CC_C_O
|
AM_PROG_CC_C_O
|
||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
|
AC_USE_SYSTEM_EXTENSIONS
|
||||||
AC_ISC_POSIX
|
AC_ISC_POSIX
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
AC_C_INLINE
|
AC_C_INLINE
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#include <config.h>
|
||||||
|
|
||||||
#include "dbus-internals.h"
|
#include "dbus-internals.h"
|
||||||
#include "dbus-sysdeps.h"
|
#include "dbus-sysdeps.h"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue