Skip to content

Commit

Permalink
Fix for Mac OS X 10.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
codebutler committed Oct 21, 2010
1 parent 28022e0 commit aa14feb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion backend/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SOURCES = \
src/http_packet.cpp \
deps/http-parser/http_parser.c

CFLAGS = \
CFLAGS += \
-DHAVE_STDARG_H \
-Wall \
-include src/config.h \
Expand All @@ -21,6 +21,7 @@ CFLAGS += -DPLATFORM_OSX
CFLAGS += -framework Security
CFLAGS += -framework SystemConfiguration
CFLAGS += -framework CoreFoundation
CFLAGS += -I/usr/local/include
LIBS += -lpcap
DEST = $(top_builddir)/xpi/platform/Darwin_x86-gcc3
endif
Expand Down
2 changes: 1 addition & 1 deletion backend/src/http_sniffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void HttpSniffer::start()
throw runtime_error(str(boost::format("%s is not an Ethernet device") % m_iface));

/* compile the filter expression */
if (pcap_compile(handle, &fp, m_filter.c_str(), 0, net) == -1)
if (pcap_compile(handle, &fp, (char *)m_filter.c_str(), 0, net) == -1)
throw runtime_error(str(boost::format("Couldn't parse filter %s: %s") % m_filter % pcap_geterr(handle)));

/* apply the compiled filter */
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ case "$host_os" in
TARGET=WIN32
;;
darwin*)
CFLAGS="-arch i386"
CFLAGS="-isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386 -mmacosx-version-min=10.5"
TARGET=OSX
;;
*)
Expand Down

0 comments on commit aa14feb

Please sign in to comment.