Fix a bug in rp2gen utility which segfaults on 64 bit architectures

during net/coda6_server's build.

net/coda6_server build failure reported by Kris.

Approved by:	portmgr (erwin)
This commit is contained in:
Vasil Dimov 2006-10-20 10:36:38 +00:00
parent 97fd3c6015
commit 5b8f62c24d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=175431
2 changed files with 16 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= rpc2
PORTVERSION= 2.2
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ftp://ftp.coda.cs.cmu.edu/pub/rpc2/src/ \
ftp://ftp.wu-wien.ac.at/pub/systems/coda/src/ \

View File

@ -0,0 +1,15 @@
--- rp2gen/symtab.c.orig Fri Oct 20 09:04:36 2006
+++ rp2gen/symtab.c Fri Oct 20 09:19:18 2006
@@ -53,6 +53,12 @@
extern VAR *make_var();
ENTRY *find();
+/*
+ * If this is not prototyped its return value defaults to int which results
+ * in bogus results on systems where sizeof(void*) > sizeof(int).
+ */
+extern RPC2_TYPE *rpc2_struct_type(VAR **);
+
/* This module uses external chaining */
#define SYMTAB_SIZE 50