[pypy-commit] pypy default: fix includes

mattip noreply at buildbot.pypy.org
Thu Apr 17 22:58:01 CEST 2014


Author: Matti Picus <matti.picus at gmail.com>
Branch: 
Changeset: r70712:5097ad65585c
Date: 2014-04-17 23:43 +0200
http://bitbucket.org/pypy/pypy/changeset/5097ad65585c/

Log:	fix includes

diff --git a/rpython/translator/c/src/instrument.c b/rpython/translator/c/src/instrument.c
--- a/rpython/translator/c/src/instrument.c
+++ b/rpython/translator/c/src/instrument.c
@@ -6,10 +6,10 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#include <stdlib.h>
+#include <stdio.h>
 #ifndef _WIN32
 #include <sys/mman.h>
-#include <stdlib.h>
-#include <stdio.h>
 #include <unistd.h>
 #else
 #include <windows.h>
diff --git a/rpython/translator/c/src/threadlocal.h b/rpython/translator/c/src/threadlocal.h
--- a/rpython/translator/c/src/threadlocal.h
+++ b/rpython/translator/c/src/threadlocal.h
@@ -2,6 +2,7 @@
 
 #ifdef _WIN32
 
+#include <WinSock2.h>
 #include <windows.h>
 #define __thread __declspec(thread)
 typedef DWORD RPyThreadTLS;


More information about the pypy-commit mailing list