mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 05:58:01 +02:00
core: use _GNU_SOURCE consistently
This commit is contained in:
parent
641af69086
commit
ba5a7024bd
4 changed files with 4 additions and 6 deletions
|
|
@ -18,8 +18,6 @@
|
||||||
* Copyright (C) 2008 Red Hat, Inc.
|
* Copyright (C) 2008 Red Hat, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,6 @@
|
||||||
* Copyright (C) 2007 - 2008 Red Hat, Inc.
|
* Copyright (C) 2007 - 2008 Red Hat, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
||||||
|
|
@ -434,6 +434,9 @@ else
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Define _GNU_SOURCE for various things like strcasestr()
|
||||||
|
CFLAGS="$CFLAGS -D_GNU_SOURCE"
|
||||||
|
|
||||||
GTK_DOC_CHECK(1.0)
|
GTK_DOC_CHECK(1.0)
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,7 @@ test_crypto_SOURCES = \
|
||||||
test-crypto.c
|
test-crypto.c
|
||||||
|
|
||||||
test_crypto_CPPFLAGS = \
|
test_crypto_CPPFLAGS = \
|
||||||
$(GLIB_CFLAGS) \
|
$(GLIB_CFLAGS)
|
||||||
-D_GNU_SOURCE
|
|
||||||
|
|
||||||
test_crypto_LDADD = \
|
test_crypto_LDADD = \
|
||||||
$(GLIB_LIBS) \
|
$(GLIB_LIBS) \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue