summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-03-22 00:03:16 (GMT)
committer Vincent Sanders <vince@kyllikki.org>2015-03-22 00:03:16 (GMT)
commitc16fd200f56dc485e3651560ef417996132245fb (patch)
treeb027205f70e5e52209941f1a11c78f033511ec8f
parent34fec03ed659cb93f345cf0d1bf01901890b0576 (diff)
downloadlibhubbub-c16fd200f56dc485e3651560ef417996132245fb.tar.gz
libhubbub-c16fd200f56dc485e3651560ef417996132245fb.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 5d88438..ebb0631 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,9 @@
+#!/bin/make
+#
+# Makefile for libhubbub
+#
+# Copyright 2009-1015 John-Mark Bell <jmb@netsurf-browser.org>
+
# Component settings
COMPONENT := hubbub
COMPONENT_VERSION := 0.3.1
@@ -21,8 +27,10 @@ ifneq ($(BUILD),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