summaryrefslogtreecommitdiff
path: root/nfs/rpc.c
diff options
context:
space:
mode:
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>