patches/glibc/2.3.3/glibc-2.3.2-allow-gcc-3.5-xdr.patch
changeset 301 2be7232a73ac
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/glibc/2.3.3/glibc-2.3.2-allow-gcc-3.5-xdr.patch	Sat Jul 28 21:34:41 2007 +0000
     1.3 @@ -0,0 +1,44 @@
     1.4 +http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sunrpc/rpc/xdr.h.diff?r1=1.27&r2=1.28&cvsroot=glibc
     1.5 +(but see also http://sources.redhat.com/ml/libc-alpha/2004-03/msg00267.html
     1.6 +and http://gcc.gnu.org/ml/gcc-patches/2004-03/msg02056.html)
     1.7 +
     1.8 +Fixes errors
     1.9 +
    1.10 +rpc_cmsg.c: In function `xdr_callmsg':
    1.11 +rpc_cmsg.c:70: error: invalid lvalue in increment
    1.12 +rpc_cmsg.c:71: error: invalid lvalue in increment
    1.13 +rpc_cmsg.c:74: error: invalid lvalue in increment
    1.14 +rpc_cmsg.c:77: error: invalid lvalue in increment
    1.15 +rpc_cmsg.c:78: error: invalid lvalue in increment
    1.16 +rpc_cmsg.c:79: error: invalid lvalue in increment
    1.17 +rpc_cmsg.c:81: error: invalid lvalue in increment
    1.18 +rpc_cmsg.c:89: error: invalid lvalue in increment
    1.19 +rpc_cmsg.c:106: error: invalid lvalue in increment
    1.20 +rpc_cmsg.c:107: error: invalid lvalue in increment
    1.21 +rpc_cmsg.c:112: error: invalid lvalue in increment
    1.22 +rpc_cmsg.c:117: error: invalid lvalue in increment
    1.23 +rpc_cmsg.c:118: error: invalid lvalue in increment
    1.24 +rpc_cmsg.c:119: error: invalid lvalue in increment
    1.25 +rpc_cmsg.c:121: error: invalid lvalue in increment
    1.26 +rpc_cmsg.c:160: error: invalid lvalue in increment
    1.27 +
    1.28 +===================================================================
    1.29 +RCS file: /cvs/glibc/libc/sunrpc/rpc/xdr.h,v
    1.30 +retrieving revision 1.27
    1.31 +retrieving revision 1.28
    1.32 +diff -u -r1.27 -r1.28
    1.33 +--- libc/sunrpc/rpc/xdr.h	2002/12/16 02:05:49	1.27
    1.34 ++++ libc/sunrpc/rpc/xdr.h	2004/03/22 10:52:33	1.28
    1.35 +@@ -262,10 +262,8 @@
    1.36 +  * and shouldn't be used any longer. Code which use this defines or longs
    1.37 +  * in the RPC code will not work on 64bit Solaris platforms !
    1.38 +  */
    1.39 +-#define IXDR_GET_LONG(buf) \
    1.40 +-	((long)ntohl((u_long)*__extension__((u_int32_t*)(buf))++))
    1.41 +-#define IXDR_PUT_LONG(buf, v) \
    1.42 +-	(*__extension__((u_int32_t*)(buf))++ = (long)htonl((u_long)(v)))
    1.43 ++#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))
    1.44 ++#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))
    1.45 + #define IXDR_GET_U_LONG(buf)	      ((u_long)IXDR_GET_LONG(buf))
    1.46 + #define IXDR_PUT_U_LONG(buf, v)	      IXDR_PUT_LONG(buf, (long)(v))
    1.47 +