MAKEFILE: Fix Linux build when pcap.h isn't available but SDL is. Fix for Issue #97

This commit is contained in:
Mark Pizzolato 2014-01-16 06:17:45 -08:00
parent e1b0a416a9
commit 8b9e33c3a3

View file

@ -400,9 +400,9 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
endif
else
# On non-Linux platforms, we'll still try to provide deprecated support for libpcap in /usr/local
INCPATHSAVE := $(INCPATH)
ifeq (,$(findstring Linux,$(OSTYPE)))
# Look for package built from tcpdump.org sources with default install target (or cygwin winpcap)
INCPATHSAVE := $(INCPATH)
INCPATH += /usr/local/include
PCAP_H_FOUND = $(call find_include,pcap)
endif