--- a/tools/rpcgen/rpc_cout.c
+++ b/tools/rpcgen/rpc_cout.c
@@ -38,7 +38,6 @@ static char sccsid[] = "@(#)rpc_cout.c 1
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
-#include <malloc.h>
 #include <ctype.h>
 #include "rpc_parse.h"
 #include "rpc_util.h"