From 97c4b6d750ed65a52e3221741081f40e72ae1696 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Mon, 2 Jan 2017 13:30:58 +0100 Subject: [PATCH] build: define _GNU_SOURCE for .c files This is needed for asprintf(). Signed-off-by: Bartosz Golaszewski --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2