lkml.org 
[lkml]   [1999]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [NFS] nfs-utils 0.1.3 is released.
On Mon, Nov 29, 1999 at 04:06:31PM -0800, Thomas Davis wrote:
> "H . J . Lu" wrote:
> >
> > Could you please back out your change to /usr/include/rpc/xdr.h and
> > try this patch instead?
> >
>
> close..
>
> but, still needs some work. For rh5.1, uint32_t isn't declared; it's
> u_int32_t.
>
> so, changing
>
> > + f_print(fout, "#define IXDR_GET_INT32(buf) ((int32_t)ntohl((uint32_t)*(buf)++))\n");
> to
> > + f_print(fout, "#define IXDR_GET_INT32(buf) ((int32_t)ntohl((u_int32_t)*(buf)++))\n");
>
> fixes it (and the rest of the uint32_t's)
>

Please try this patch instead. Let me know what you get.

Thanks.


H.J.
---
? tools/rpcgen/rpcgen
Index: tools/rpcgen/rpc_main.c
===================================================================
RCS file: /cvsroot/nfs/nfs-utils/tools/rpcgen/rpc_main.c,v
retrieving revision 1.2
diff -u -p -r1.2 rpc_main.c
--- tools/rpcgen/rpc_main.c 1999/10/28 19:58:00 1.2
+++ tools/rpcgen/rpc_main.c 1999/11/30 06:36:41
@@ -488,6 +488,19 @@ h_output(char *infile, char *define, int

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) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.382 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site