Make checking the linux installed headers optional (instead of systematic).
1 --- glibc-2.1.3/sunrpc/rpc/types.h Fri Oct 16 13:43:49 1998
2 +++ glibc-2.1.3/sunrpc/rpc/types.h Thu Aug 1 09:06:38 2002
5 #include <stdlib.h> /* For malloc decl. */
6 #define mem_alloc(bsize) malloc(bsize)
8 + * XXX: This must not use the second argument, or code in xdr_array.c needs
11 #define mem_free(ptr, bsize) free(ptr)
13 #ifndef makedev /* ie, we haven't already included it */
14 --- glibc-2.1.3/sunrpc/xdr_array.c Thu Jul 16 15:23:51 1998
15 +++ glibc-2.1.3/sunrpc/xdr_array.c Thu Aug 1 09:07:45 2002
18 #include <rpc/types.h>
22 #define LASTUNSIGNED ((u_int)0-1)
28 - if ((c > maxsize) && (xdrs->x_op != XDR_FREE))
30 + * XXX: Let the overflow possibly happen with XDR_FREE because mem_free()
31 + * doesn't actually use its second argument anyway.
33 + if ((c > maxsize || c > UINT_MAX / elsize) && (xdrs->x_op != XDR_FREE))