From fb1dcaf66b36132858f3bb89d01d41c414a98bba Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Sun, 3 Jun 2018 20:28:56 +0530 Subject: Use -D_GNU_SOURCE for gcc-7 compatibility baresip fails to build with gcc-7 because libdirectfb-dev needs to know the size of struct timespec, which is an opaque type unless we're using GNU extensions, but libre-dev sets -std=c99. Adjust cflags to enable _GNU_SOURCE. Bug-Debian: https://bugs.debian.org/872406 Last-Update: 2017-08-26 Gbp-Pq: Name 1001_gcc7_compat.patch --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index a1a9d1e..357a14a 100644 --- a/Makefile +++ b/Makefile @@ -49,6 +49,7 @@ endif CFLAGS += -I. -Iinclude -I$(LIBRE_INC) -I$(SYSROOT)/include CFLAGS += -I$(LIBREM_PATH)/include CFLAGS += -I$(SYSROOT)/local/include/rem -I$(SYSROOT)/include/rem +CFLAGS += -D_GNU_SOURCE CXXFLAGS += -I. -Iinclude -I$(LIBRE_INC) CXXFLAGS += -I$(LIBREM_PATH)/include -- cgit v1.2.3