summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-03-21 23:09:07 +0000
committerVincent Sanders <vince@kyllikki.org>2015-03-21 23:09:07 +0000
commitcb5ca6b62bb194e66c9d261fec8bde9f050544e6 (patch)
tree8e9c4a8ca96597a0484b7ca20bd24c4bbaa727c8
parent5ab93365aff6d1f9e960f51e70736ba689d48680 (diff)
downloadlibwapcaplet-cb5ca6b62bb194e66c9d261fec8bde9f050544e6.tar.gz
libwapcaplet-cb5ca6b62bb194e66c9d261fec8bde9f050544e6.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 5c730a1..21822fa 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,9 @@
+#!/bin/make
+#
+# Makefile for wapcaplet
+#
+# Copyright 2009-1015 John-Mark Bell <jmb@netsurf-browser.org>
+
# Component settings
COMPONENT := wapcaplet
COMPONENT_VERSION := 0.2.2
@@ -20,8 +26,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