summaryrefslogtreecommitdiffstatshomepage
path: root/unix/socket.c
diff options
context:
space:
mode:
authorxbe <xbe@machine>2014-03-15 23:24:34 -0700
committerxbe <xbe@machine>2014-03-16 12:14:15 -0700
commitc93a22197bfdb9323fa176eca4d30f307963ce9d (patch)
treebf1545ee595378c06f652b77e1418bac590b0e0c /unix/socket.c
parent51bbf6a006901fd3877c6abe3d5d67de74401310 (diff)
downloadmicropython-c93a22197bfdb9323fa176eca4d30f307963ce9d.tar.gz
micropython-c93a22197bfdb9323fa176eca4d30f307963ce9d.zip
unix: Clean up includes.
Remove unnecessary includes. Add includes that improve portability.
Diffstat (limited to 'unix/socket.c')
-rw-r--r--unix/socket.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/socket.c b/unix/socket.c
index a9cf4a81a0..d720275192 100644
--- a/unix/socket.c
+++ b/unix/socket.c
@@ -2,7 +2,10 @@
#include <assert.h>
#include <string.h>
#include <unistd.h>
+#include <sys/stat.h>
+#include <sys/types.h>
#include <sys/socket.h>
+#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <errno.h>