diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-03-21 23:09:07 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-03-21 23:09:07 +0000 |
commit | cb5ca6b62bb194e66c9d261fec8bde9f050544e6 (patch) | |
tree | 8e9c4a8ca96597a0484b7ca20bd24c4bbaa727c8 | |
parent | 5ab93365aff6d1f9e960f51e70736ba689d48680 (diff) | |
download | libwapcaplet-cb5ca6b62bb194e66c9d261fec8bde9f050544e6.tar.gz |
Update CFLAGS to avoid deprication warning for glibc 2.21 and later.
-rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |