From dc9547360c5dabc82cc2893048e9cda8020dbaa7 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 21 Mar 2015 23:23:47 +0000 Subject: Update CFLAGS to avoid deprication warning for glibc 2.21 and later. --- Makefile | 12 ++++++++++-- 1 file 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 + # 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 -- cgit v1.2.3