summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-03-22 00:09:54 (GMT)
committer Vincent Sanders <vince@kyllikki.org>2015-03-22 00:09:54 (GMT)
commit36a44d6f22bb49565bbbe5f3285407c733128aee (patch)
tree6a675fa04793e530c5fd786612dd527913e8360c
parent29ba424fc9b3fed6e4287fa01def11f8bde0c9ec (diff)
downloadlibnsbmp-36a44d6f22bb49565bbbe5f3285407c733128aee.tar.gz
libnsbmp-36a44d6f22bb49565bbbe5f3285407c733128aee.tar.bz2
Update CFLAGS to avoid deprication warning for glibc 2.21 and later.
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 607da97..486cd11 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,9 @@
+#!/bin/make
+#
+# Makefile for libnsbmp
+#
+# Copyright 2009-1015 John-Mark Bell <jmb@netsurf-browser.org>
+
# Component settings
COMPONENT := nsbmp
COMPONENT_VERSION := 0.1.2
@@ -17,8 +23,10 @@ WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
ifneq ($(BUILD),i586-pc-haiku)
WARNFLAGS := $(WARNFLAGS) -Werror
endif
-CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
- -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
+
+CFLAGS := -D_BSD_SOURCE -D_DEFAULT_SOURCE \
+ -I$(CURDIR)/include/ -I$(CURDIR)/src \
+ (WARNFLAGS) $(CFLAGS)
ifneq ($(GCCVER),2)
CFLAGS := $(CFLAGS) -std=c99
else