From f69121b84ca4c47e51877b53d073cf0408bf34ea Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 4 Jun 2015 13:00:42 -0400 Subject: build: Use AC_USE_SYSTEM_EXTENSIONS This ensures that we get all of the extensions consistently, rather than having just a few files `#define _GNU_SOURCE`. --- configure.ac | 1 + src/examples/frobnicate.c | 3 ++- src/polkitagent/polkitagenthelperprivate.h | 1 - src/programs/pkexec.c | 2 -- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 4af973b..8112171 100644 --- a/configure.ac +++ b/configure.ac @@ -23,6 +23,7 @@ AC_SUBST(LT_CURRENT) AC_SUBST(LT_REVISION) AC_SUBST(LT_AGE) +AC_USE_SYSTEM_EXTENSIONS AC_ISC_POSIX AC_PROG_CC AC_HEADER_STDC diff --git a/src/examples/frobnicate.c b/src/examples/frobnicate.c index 7ca6c46..29e0cbf 100644 --- a/src/examples/frobnicate.c +++ b/src/examples/frobnicate.c @@ -19,7 +19,8 @@ * Author: David Zeuthen */ -#define _GNU_SOURCE +#include "config.h" + #include #include #include diff --git a/src/polkitagent/polkitagenthelperprivate.h b/src/polkitagent/polkitagenthelperprivate.h index 547fdcc..c5145b5 100644 --- a/src/polkitagent/polkitagenthelperprivate.h +++ b/src/polkitagent/polkitagenthelperprivate.h @@ -22,7 +22,6 @@ #ifndef __POLKIT_AGENT_HELPER_PRIVATE_H #define __POLKIT_AGENT_HELPER_PRIVATE_H -#define _GNU_SOURCE #include /* Development aid: define PAH_DEBUG to get debugging output. Do _NOT_ diff --git a/src/programs/pkexec.c b/src/programs/pkexec.c index 32c204d..7698c5c 100644 --- a/src/programs/pkexec.c +++ b/src/programs/pkexec.c @@ -23,8 +23,6 @@ # include "config.h" #endif -#define _GNU_SOURCE - #include #include #include -- cgit v1.2.1