diff options
author | wxs <wxs@FreeBSD.org> | 2011-12-19 03:44:58 +0800 |
---|---|---|
committer | wxs <wxs@FreeBSD.org> | 2011-12-19 03:44:58 +0800 |
commit | 7f2595c225abb91412994df11b053f7fc13a3c06 (patch) | |
tree | 75ffcf71f20978213f1f403b00cadc3e8eb3be88 /net/py-pypcap | |
parent | 770ba817b9aa8f1327703aed9bd490f224154840 (diff) | |
download | freebsd-ports-gnome-7f2595c225abb91412994df11b053f7fc13a3c06.tar.gz freebsd-ports-gnome-7f2595c225abb91412994df11b053f7fc13a3c06.tar.zst freebsd-ports-gnome-7f2595c225abb91412994df11b053f7fc13a3c06.zip |
Fix build on 9 and 10.
PR: ports/163341
Submitted by: Jan Beich <jbeich@tormail.net>
Diffstat (limited to 'net/py-pypcap')
-rw-r--r-- | net/py-pypcap/files/patch-setup.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/py-pypcap/files/patch-setup.py b/net/py-pypcap/files/patch-setup.py index 711c375ed5b2..aa9988d44b81 100644 --- a/net/py-pypcap/files/patch-setup.py +++ b/net/py-pypcap/files/patch-setup.py @@ -1,11 +1,11 @@ ---- setup.py.orig 2005-10-16 19:07:03.000000000 -0400 -+++ setup.py 2010-01-27 22:53:23.749001522 -0500 +--- ./setup.py.orig 2005-10-16 19:07:03.000000000 -0400 ++++ ./setup.py 2011-12-18 14:32:02.170660843 -0500 @@ -25,7 +25,10 @@ d = {} 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.uname()[2][0] >= '8': ++ if int(os.uname()[2].split('.')[0]) >= 8: + buf = open(os.path.join(cfg['include_dirs'][1], 'pcap.h')).read() + else: + buf = open(os.path.join(cfg['include_dirs'][0], 'pcap.h')).read() |