From 0600d5186e3a68c3fc2d8d1b90302ef50a6813a8 Mon Sep 17 00:00:00 2001 From: Volker Diels-Grabsch Date: Wed, 30 Aug 2017 21:11:44 +0200 Subject: [PATCH] Fix compiler warning This fixes the following warning: In file included from /usr/include/stdlib.h:24:0, from texcaller.h:172, from texcaller.c:14: /usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ --- c/Makefile | 2 +- shell/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c/Makefile b/c/Makefile index e504ea0..4f63022 100644 --- a/c/Makefile +++ b/c/Makefile @@ -5,7 +5,7 @@ AR := $(CROSS)ar CC := $(CROSS)gcc CXX := $(CROSS)g++ INSTALL := $(shell ginstall --help >/dev/null 2>&1 && echo g)install -CFLAGS := -O3 -ansi -pedantic -W -Wall -Werror +CFLAGS := -O3 -D_DEFAULT_SOURCE -ansi -pedantic -W -Wall -Werror .PHONY: all check clean install diff --git a/shell/Makefile b/shell/Makefile index 441e1a5..3c5dd93 100644 --- a/shell/Makefile +++ b/shell/Makefile @@ -3,7 +3,7 @@ PREFIX := /usr/local CROSS := CC := $(CROSS)gcc INSTALL := $(shell ginstall --help >/dev/null 2>&1 && echo g)install -CFLAGS := -O3 -ansi -pedantic -W -Wall -Werror +CFLAGS := -O3 -D_DEFAULT_SOURCE -ansi -pedantic -W -Wall -Werror .PHONY: all check clean install