diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-03-21 22:00:54 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-03-21 22:00:54 +0000 |
commit | c2e0d171a13bb4ffe89d0fe4ac373159d9183fb0 (patch) | |
tree | ac4f007f49e7fc56afcb39c6aa007c8767258e7b | |
parent | 93104d99c4bc2ce809ac6919624c864efbb60577 (diff) | |
download | libparserutils-c2e0d171a13bb4ffe89d0fe4ac373159d9183fb0.tar.gz |
Update CFLAGS to avoid deprication warning for glibc 2.21 and later.
-rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,9 @@ +#!/bin/make +# +# Makefile for parserutils +# +# Copyright 2009-1015 John-Mark Bell <jmb@netsurf-browser.org> + # Component settings COMPONENT := parserutils COMPONENT_VERSION := 0.2.1 @@ -20,8 +26,9 @@ 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 |