File: 20_setup_search_pcap_pcap_h

package info (click to toggle)
python-pypcap 1.1.2%2Bdebian-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 112 kB
  • ctags: 101
  • sloc: ansic: 275; python: 144; makefile: 69
file content (13 lines) | stat: -rw-r--r-- 782 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: python-pypcap-1.1.2+debian/setup.py
===================================================================
--- python-pypcap-1.1.2+debian.orig/setup.py	2009-05-09 17:21:37.317432610 -0400
+++ python-pypcap-1.1.2+debian/setup.py	2009-05-09 17:23:23.617032040 -0400
@@ -26,6 +26,8 @@
         if os.path.exists(os.path.join(cfg['include_dirs'][0], 'pcap-int.h')):
             d['HAVE_PCAP_INT_H'] = 1
         buf = open(os.path.join(cfg['include_dirs'][0], 'pcap.h')).read()
+        if os.path.exists(os.path.join(cfg['include_dirs'][0], 'pcap', 'pcap.h')):
+            buf += open(os.path.join(cfg['include_dirs'][0], 'pcap', 'pcap.h')).read()
         if buf.find('pcap_file(') != -1:
             d['HAVE_PCAP_FILE'] = 1
         if buf.find('pcap_compile_nopcap(') != -1: