]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 210238 via svnmerge from
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 4 Aug 2009 14:54:45 +0000 (14:54 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 4 Aug 2009 14:54:45 +0000 (14:54 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

................
  r210238 | kpfleming | 2009-08-04 09:53:00 -0500 (Tue, 04 Aug 2009) | 16 lines

  Merged revisions 210237 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r210237 | kpfleming | 2009-08-04 09:51:39 -0500 (Tue, 04 Aug 2009) | 10 lines

    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.6.1@210240 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile

index 13064ac777ca37ae5a30a6252908815516dc02fa..8e37091f9984edab5a450653d7839c584c85beb8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -238,7 +238,7 @@ ifeq ($(AST_DEVMODE),yes)
 endif
 
 ifneq ($(findstring BSD,$(OSARCH)),)
-  _ASTCFLAGS+=-I/usr/local/include
+  _ASTCFLAGS+=-isystem /usr/local/include
 endif
 
 ifeq ($(findstring -march,$(_ASTCFLAGS) $(ASTCFLAGS)),)