Use AC_USE_SYSTEM_EXTENSIONS instead of #define _GNU_SOURCE

It's less copy/paste, works everywhere, etc.

Also fix some missing #include "config.h".
This commit is contained in:
Colin Walters committed 2013-07-10 13:25:35 -04:00
1 parent 8cb348315e
commit 124416d832
11 files changed
+6 -15

No files matched your search

+1
View File
@@ -7,6 +7,7 @@ AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([1.11 -Wno-portability foreign no-define tar-ustar no-dist-gzip dist-xz])
AM_MAINTAINER_MODE([enable])
AM_SILENT_RULES([yes])
AC_USE_SYSTEM_EXTENSIONS
AC_SYS_LARGEFILE
AC_PROG_CC
-3
View File
@@ -20,9 +20,6 @@
* Author: Colin Walters <walters@verbum.org>
*/
/* for mkdtemp */
#define _GNU_SOURCE
#include "config.h"
#include "ostree.h"
-2
View File
@@ -20,8 +20,6 @@
* Author: Colin Walters <walters@verbum.org>
*/
#define _GNU_SOURCE
#include "config.h"
#include "ostree.h"
-2
View File
@@ -20,8 +20,6 @@
* Author: Colin Walters <walters@verbum.org>
*/
#define _GNU_SOURCE
#include "config.h"
#include "ostree.h"
-2
View File
@@ -22,8 +22,6 @@
#include "config.h"
#define _GNU_SOURCE
#include "otutil.h"
#include <gio/gio.h>
-1
View File
@@ -20,7 +20,6 @@
* Author: Colin Walters <walters@verbum.org>
*/
#define _GNU_SOURCE
#include "config.h"
#include "ot-admin-functions.h"
-1
View File
@@ -20,7 +20,6 @@
* Author: Colin Walters <walters@verbum.org>
*/
#define _GNU_SOURCE
#include "config.h"
#include "ot-admin-functions.h"
-1
View File
@@ -20,7 +20,6 @@
* Author: Colin Walters <walters@verbum.org>
*/
#define _GNU_SOURCE
#include "config.h"
#include "ot-admin-functions.h"
+1 -1
View File
@@ -20,7 +20,7 @@
* Author: Colin Walters <walters@verbum.org>
*/
#define _GNU_SOURCE
#include "config.h"
#include <stdarg.h>
#include <errno.h>
+3 -1
View File
@@ -23,7 +23,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#define _GNU_SOURCE
#include "config.h"
#include <sys/mount.h>
#include <sys/types.h>
#include <sys/stat.h>
+1 -1
View File
@@ -20,7 +20,7 @@
* Author: Colin Walters <walters@verbum.org>
*/
#define _GNU_SOURCE
#include "config.h"
#include <string.h>
#include <stdio.h>