summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorhjl <hjl>1999-12-02 20:29:05 +0000
committerhjl <hjl>1999-12-02 20:29:05 +0000
commit0865e25ca2d978d93a53ad64974e5eb0a371a997 (patch)
treeeb7dd49450dbcfdee28882d36f4650046c5b20b9 /tools
parent23902fd9a92b121280d054d41b439f39a8ef3064 (diff)
downloadnfs-utils-0865e25ca2d978d93a53ad64974e5eb0a371a997.tar.gz
nfs-utils-0865e25ca2d978d93a53ad64974e5eb0a371a997.tar.xz
nfs-utils-0865e25ca2d978d93a53ad64974e5eb0a371a997.zip
Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
* tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32, XDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
Diffstat (limited to 'tools')
-rw-r--r--tools/rpcgen/rpc_main.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/rpcgen/rpc_main.c b/tools/rpcgen/rpc_main.c
index 9b600f3..39b667e 100644
--- a/tools/rpcgen/rpc_main.c
+++ b/tools/rpcgen/rpc_main.c
@@ -488,6 +488,19 @@ h_output(char *infile, char *define, int extend, char *outfile)
f_print(fout, "#include <rpc/rpc.h>\n\n");
+ f_print(fout, "#ifndef IXDR_GET_INT32\n");
+ f_print(fout, "#define IXDR_GET_INT32(buf) IXDR_GET_LONG((buf))\n");
+ f_print(fout, "#endif\n");
+ f_print(fout, "#ifndef IXDR_PUT_INT32\n");
+ f_print(fout, "#define IXDR_PUT_INT32(buf, v) IXDR_PUT_LONG((buf), (v))\n");
+ f_print(fout, "#endif\n");
+ f_print(fout, "#ifndef IXDR_GET_U_INT32\n");
+ f_print(fout, "#define IXDR_GET_U_INT32(buf) IXDR_GET_U_LONG((buf))\n");
+ f_print(fout, "#endif\n");
+ f_print(fout, "#ifndef IXDR_PUT_U_INT32\n");
+ f_print(fout, "#define IXDR_PUT_U_INT32(buf, v) IXDR_PUT_U_LONG((buf), (v))\n");
+ f_print(fout, "#endif\n");
+
tell = ftell(fout);
/* print data definitions */
while ((def = get_definition()) != NULL) {