diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tools/rpcgen/rpc_main.c | 13 |
2 files changed, 18 insertions, 0 deletions
@@ -1,5 +1,10 @@ Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org> + * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32, + IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32. + +Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org> + * nfs-utils.spec (Version): Set to 0.1.3. * configure.in (VERSION): Set to "nfs-utils 0.1.3". 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) { |