__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>
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])
* 02110-1301 USA
*/
-#define __GNU_SOURCE
#include <search.h>
#include "sys/smack.h"
#include <errno.h>