aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2006-03-19 16:36:37 +0800
committerperky <perky@FreeBSD.org>2006-03-19 16:36:37 +0800
commitf9421a81a49e2cf0401cbc0931fb5d69be670389 (patch)
tree14e4e776bbcf9acdd0cf7f3c471eb62e8ffc62a5 /net
parent7f69812243b206cdb9931eb4ecfaf8e2af88bc3e (diff)
downloadfreebsd-ports-gnome-f9421a81a49e2cf0401cbc0931fb5d69be670389.tar.gz
freebsd-ports-gnome-f9421a81a49e2cf0401cbc0931fb5d69be670389.tar.zst
freebsd-ports-gnome-f9421a81a49e2cf0401cbc0931fb5d69be670389.zip
Fix build for swig 1.3.28. This only fixes a build and it'll
miss some constants definitions yet. I'll finish it when it's fixed in the upstream.
Diffstat (limited to 'net')
-rw-r--r--net/py-pcap/files/patch-mk-constants.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/py-pcap/files/patch-mk-constants.py b/net/py-pcap/files/patch-mk-constants.py
new file mode 100644
index 000000000000..a04f8e57d855
--- /dev/null
+++ b/net/py-pcap/files/patch-mk-constants.py
@@ -0,0 +1,10 @@
+--- mk-constants.py.orig Sun Mar 19 17:21:07 2006
++++ mk-constants.py Sun Mar 19 17:21:41 2006
+@@ -79,6 +79,7 @@
+ rcs = ' $Id: mk-constants.py,v 1.2 2004/06/07 05:34:49 wiml Exp $\n'
+ fp.write(string.replace(rcs, '$', ''))
+ fp.write(' Do not edit this file directly, it will be overwritten \n*/\n\n')
++fp.write('#define SWIG_PY_INT 1\n')
+ fp.write('static struct swig_const_info const pcapmodule_DLT[] = {\n')
+ for dlt in linktypes:
+ fp.write('#ifdef %s\n' % (dlt,))