summaryrefslogtreecommitdiffstats
path: root/tools/rpcgen/rpc_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/rpcgen/rpc_main.c')
-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) {