From: Kevin P. Fleming Date: Tue, 4 Aug 2009 14:51:39 +0000 (+0000) Subject: Eliminate spurious compiler warnings from system headers on *BSD platforms. X-Git-Tag: 1.4.26.2~4^2~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22140c486f8b85aeb44538beaf563418e4ddf414;p=thirdparty%2Fasterisk.git Eliminate spurious compiler warnings from system headers on *BSD platforms. Ensure that system headers located in /usr/local/include are actually treated as system headers by the compiler, and not as local headers which are subject to warnings from the -Wundef compiler option and others. (closes issue #15606) Reported by: mvanbaak git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@210237 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/Makefile b/Makefile index 2acc7ab6a6..44d029c680 100644 --- a/Makefile +++ b/Makefile @@ -221,7 +221,7 @@ ifeq ($(AST_DEVMODE),yes) endif ifneq ($(findstring BSD,$(OSARCH)),) - _ASTCFLAGS+=-I/usr/local/include + _ASTCFLAGS+=-isystem /usr/local/include _ASTLDFLAGS+=-L/usr/local/lib endif