freebsd-ports/devel/rpc2/files/patch-rp2gen_symtab.c
Vasil Dimov 5b8f62c24d 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)
2006-10-20 10:36:38 +00:00

15 lines
425 B
C

--- 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