libsmack: don't define __GNU_SOURCE in the code
authorRafal Krypa <r.krypa@samsung.com>
Tue, 31 Dec 2013 17:04:56 +0000 (18:04 +0100)
committerRafal Krypa <r.krypa@samsung.com>
Tue, 31 Dec 2013 17:04:56 +0000 (18:04 +0100)
__GNU_SOURCE is a glibc internal and should not be used directly.
It was already provided by AC_USE_SYSTEM_EXTENSIONS in configure.ac, so
it can be safely dropped.
Use more explicit AC_GNU_SOURCE in configure.ac instead (on Linux systems
they should be equivalent).

Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
configure.ac
libsmack/libsmack.c

index d2ad524..556b676 100644 (file)
@@ -7,7 +7,7 @@ AC_INIT([libsmack],
 AC_CONFIG_SRCDIR([libsmack/libsmack.c])
 AC_CONFIG_AUX_DIR([build-aux])
 AM_INIT_AUTOMAKE([-Wall -Werror dist-bzip2 foreign])
-AC_USE_SYSTEM_EXTENSIONS
+AC_GNU_SOURCE
 AC_CONFIG_MACRO_DIR([m4])
 AM_SILENT_RULES([yes])
 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
index 0052c1d..afbb6c2 100644 (file)
@@ -20,7 +20,6 @@
  * 02110-1301 USA
  */
 
-#define __GNU_SOURCE
 #include <search.h>
 #include "sys/smack.h"
 #include <errno.h>