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.
This commit is contained in:
Hye-Shik Chang 2006-03-19 08:36:37 +00:00
parent c13b03b1a6
commit 612f3f0db2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=157652

View file

@ -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,))