Browse Source

[master] Changes to fix build under OS X/clang++

Changes were reviewed and approved in the Jabber room.
Stephen Morris 14 years ago
parent
commit
5a906f923e
2 changed files with 7 additions and 0 deletions
  1. 5 0
      tests/tools/badpacket/Makefile.am
  2. 2 0
      tests/tools/badpacket/scan.cc

+ 5 - 0
tests/tools/badpacket/Makefile.am

@@ -20,6 +20,11 @@ badpacket_SOURCES += option_info.cc option_info.h
 badpacket_SOURCES += scan.cc scan.h
 badpacket_SOURCES += version.h
 
+badpacket_CXXFLAGS = $(AM_CXXFLAGS)
+if USE_CLANGPP
+badpacket_CXXFLAGS += -Wno-error
+endif
+
 badpacket_LDADD  = $(top_builddir)/src/lib/asiodns/libasiodns.la
 badpacket_LDADD += $(top_builddir)/src/lib/dns/libdns++.la
 badpacket_LDADD += $(top_builddir)/src/lib/asiolink/libasiolink.la

+ 2 - 0
tests/tools/badpacket/scan.cc

@@ -19,6 +19,8 @@
 
 #include <stdlib.h>
 
+#include <config.h>
+
 #include <asio.hpp>
 
 #include <asiolink/io_address.h>