Check include/pcap/ before include/ for pcap.h. Fixes #5046

git-svn-id: svn://svn.openwrt.org/openwrt/packages@16216 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
lars 2009-05-30 17:48:44 +00:00
parent 0ec8f60c13
commit 37d3a2bfd5

View File

@ -93,7 +93,7 @@
+ dirs = [ '/usr', sys.prefix ] + glob.glob('/opt/libpcap*') + \
+ glob.glob('../libpcap*') + glob.glob('../wpdpack*')
+ for d in dirs:
+ for sd in ('include', 'include/pcap', ''):
+ for sd in ('include/pcap', 'include', ''):
+ incdirs = [ os.path.join(d, sd) ]
+ if os.path.exists(os.path.join(d, sd, 'pcap.h')):
+ cfg['include_dirs'] = [ os.path.join(d, sd) ]