summaryrefslogtreecommitdiff
path: root/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'udp.c')
-rw-r--r--udp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/udp.c b/udp.c
index 4c1a383..e8b2a3d 100644
--- a/udp.c
+++ b/udp.c
@@ -1,7 +1,8 @@
-#include <malloc.h>
+#ifndef __APPLE_CC__
#include <string.h>
#include <math.h>
#include <sys/socket.h>
+#include <malloc.h>
#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include <linux/ip.h>
@@ -104,3 +105,4 @@ int sendCustomUDP(const int socket, const int ifindex, const unsigned char *sour
/* Return amount of _data_ bytes sent */
return send_result-8-14-20;
}
+#endif