summaryrefslogtreecommitdiff
path: root/nfs/rpc.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-03-29 22:26:52 +0000
committerMiles Bader <miles@gnu.org>1996-03-29 22:26:52 +0000
commitd374c64e9d5fbd3febc984a7d1fa0b37f1de8a0f (patch)
tree8da61c077ba9c566741c14864c8599a3808def9a /nfs/rpc.c
parentc43ee99d46966b7ba6e2b5a63ba3dc9d02a4e2af (diff)
Define malloc to something random around include of rpc/* header files to
avoid bogus definition there.
Diffstat (limited to 'nfs/rpc.c')
-rw-r--r--nfs/rpc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nfs/rpc.c b/nfs/rpc.c
index 348c5c98..7df05c36 100644
--- a/nfs/rpc.c
+++ b/nfs/rpc.c
@@ -20,6 +20,7 @@
/* Needed in order to get the RPC header files to include correctly */
#undef TRUE
#undef FALSE
+#define malloc spoiufasdf /* Avoid bogus definition in rpc/types.h */
#include <rpc/types.h>
#include <rpc/xdr.h>
@@ -27,6 +28,8 @@
#include <rpc/rpc_msg.h>
#include <rpc/auth_unix.h>
+#undef malloc /* Get rid protection. */
+
#include <netinet/in.h>
#include <assert.h>
#include <errno.h>