- linux, osx, and ios need rpc/rpc.h includede before rpc/xdr.h
authorMemphis <memphis@machzwo.de>
Wed, 1 Jun 2011 16:06:15 +0000 (18:06 +0200)
committerMemphis <memphis@machzwo.de>
Wed, 1 Jun 2011 16:06:15 +0000 (18:06 +0200)
- fixed some missing includes for bzero, malloc and free

lib/init.c
lib/pdu.c
lib/socket.c
mount/mount.c
nfs/nfs.c
portmap/portmap.c

index fb2ae83512150b4f0eb0114eccbc11ec9b5dcad5..dde97d773062d8438e7c3c972a821740f275949d 100644 (file)
@@ -21,6 +21,8 @@
 #include <unistd.h>
 #include <string.h>
 #include <strings.h>
+#include <stdlib.h>
+#include <rpc/rpc.h>
 #include <rpc/xdr.h>
 #include "slist.h"
 #include "libnfs.h"
index 238d71de4370a153c0dd6b0864d3c95ea5bec385..8aefa5743d9d76f14f98b4d7e780d7ffb09d132a 100644 (file)
--- a/lib/pdu.c
+++ b/lib/pdu.c
@@ -17,6 +17,8 @@
 
 #include <stdio.h>
 #include <strings.h>
+#include <stdlib.h>
+#include <rpc/rpc.h>
 #include <rpc/xdr.h>
 #include <rpc/rpc_msg.h>
 #include "slist.h"
index d4354bb4972eaf07366ac474f46aa6b17cb59618..4701685591793c67f2811aa0b3858c7aa87aef66 100644 (file)
 */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <poll.h>
 #include <string.h>
 #include <errno.h>
+#include <rpc/rpc.h>
 #include <rpc/xdr.h>
 #include <arpa/inet.h>
 #include <sys/ioctl.h>
index 447052d8952e48d7306cf6697928981ee6dadd32..771a54917bcfdf5ddb8ae3bfdeea07f1106eacf7 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <stdio.h>
 #include <errno.h>
+#include <rpc/rpc.h>
 #include <rpc/xdr.h>
 #include "libnfs.h"
 #include "libnfs-raw.h"
index c21046a20bd9d5720a928c25c6327a87d349d054..a9775e7f3ab3d4cf5f9cc8a9c9287bd3c2c68490 100644 (file)
--- a/nfs/nfs.c
+++ b/nfs/nfs.c
@@ -18,6 +18,8 @@
 #include <stdio.h>
 #include <errno.h>
 #include <sys/stat.h>
+#include <string.h>
+#include <rpc/rpc.h>
 #include <rpc/xdr.h>
 #include "libnfs.h"
 #include "libnfs-raw.h"
index 4c10bd8546438ee8458407bf5b259a5ba35aafc1..1e51a8f1dae803c1a2618c122423d28e6c7a01ad 100644 (file)
@@ -16,6 +16,7 @@
 */
 
 #include <stdio.h>
+#include <rpc/rpc.h>
 #include <rpc/xdr.h>
 #include "libnfs.h"
 #include "libnfs-raw.h"