@@ -2,6 +2,16 @@
2// (C) Simon Fowler, 2014
2// (C) Simon Fowler, 2014
3// MIT Licensed. Have fun!
3// MIT Licensed. Have fun!
4#include "idris_net.h"
4#include "idris_net.h"
11+#include <sys/types.h>
12+#include <sys/socket.h>
13+#include <netinet/in.h>
14+#include <arpa/inet.h>
6void buf_htonl(void* buf, int len) {
16void buf_htonl(void* buf, int len) {
7 int* buf_i = (int*) buf;
17 int* buf_i = (int*) buf;