From: Bartosz Golaszewski Date: Mon, 2 Jan 2017 12:30:58 +0000 (+0100) Subject: build: define _GNU_SOURCE for .c files X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=97c4b6d750ed65a52e3221741081f40e72ae1696;p=qemu-gpiodev%2Flibgpiod.git build: define _GNU_SOURCE for .c files This is needed for asprintf(). Signed-off-by: Bartosz Golaszewski --- diff --git a/Makefile.am b/Makefile.am index 9408f4f..9c96785 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,7 +11,7 @@ ACLOCAL_AMFLAGS = -I m4 LIBS = AM_CPPFLAGS = -I$(top_srcdir) -include $(top_srcdir)/config.h -Wextra -AM_CPPFLAGS += -fvisibility=hidden +AM_CPPFLAGS += -fvisibility=hidden -D_GNU_SOURCE lib_LTLIBRARIES = libgpiod.la