]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Eliminate spurious compiler warnings from system headers on *BSD platforms.
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 4 Aug 2009 14:51:39 +0000 (14:51 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 4 Aug 2009 14:51:39 +0000 (14:51 +0000)
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

Makefile

index 2acc7ab6a67f5371c686ced37c21a7f6565737d6..44d029c680018215106d851f6ac89f373775d8ed 100644 (file)
--- 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