From: Vincent Sanders Date: Sun, 22 Mar 2015 00:22:24 +0000 (+0000) Subject: Update CFLAGS to avoid deprication warning for glibc 2.21 and later. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=35db3a3d047cd55b2104294fbe4d39f5b72a7e14;p=libsvgtiny.git Update CFLAGS to avoid deprication warning for glibc 2.21 and later. --- diff --git a/Makefile b/Makefile index 4563b6a..308e7d0 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,9 @@ +#!/bin/make +# +# Makefile for libsvgtiny +# +# Copyright 2009-1015 John-Mark Bell + # Component settings COMPONENT := svgtiny COMPONENT_VERSION := 0.1.3 @@ -22,8 +28,9 @@ ifneq ($(BUILD),i586-pc-haiku) 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