summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-03-21 23:23:47 +0000
committerVincent Sanders <vince@kyllikki.org>2015-03-21 23:23:47 +0000
commitdc9547360c5dabc82cc2893048e9cda8020dbaa7 (patch)
tree645c459547e748c55a91d7318f7ec1898c85d10d /Makefile
parent120ed97a5e2d808931537a8075f5ce4275586042 (diff)
downloadlibcss-dc9547360c5dabc82cc2893048e9cda8020dbaa7.tar.gz
libcss-dc9547360c5dabc82cc2893048e9cda8020dbaa7.tar.bz2
Update CFLAGS to avoid deprication warning for glibc 2.21 and later.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b68dc58..4a556ef 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,9 @@
+#!/bin/make
+#
+# Makefile for libcss
+#
+# Copyright 2009-1015 John-Mark Bell <jmb@netsurf-browser.org>
+
# Component settings
COMPONENT := css
COMPONENT_VERSION := 0.5.0
@@ -21,8 +27,10 @@ ifneq ($(HOST),i586-pc-haiku)
WARNFLAGS := $(WARNFLAGS) -Werror
endif
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