[pypy-svn] r72357 - pypy/branch/kill-python-h/pypy/translator/c/src

arigo at codespeak.net arigo at codespeak.net
Thu Mar 18 10:54:33 CET 2010


Author: arigo
Date: Thu Mar 18 10:54:32 2010
New Revision: 72357

Modified:
   pypy/branch/kill-python-h/pypy/translator/c/src/stack.h
Log:
It is necessary after all to include thread.h here.


Modified: pypy/branch/kill-python-h/pypy/translator/c/src/stack.h
==============================================================================
--- pypy/branch/kill-python-h/pypy/translator/c/src/stack.h	(original)
+++ pypy/branch/kill-python-h/pypy/translator/c/src/stack.h	Thu Mar 18 10:54:32 2010
@@ -6,11 +6,10 @@
 #    define MAX_STACK_SIZE (1 << 19)
 #endif
 
-#ifdef _WIN32
 /* This include must be done in any case to initialise
- * the header dependencies early (winsock2, before windows.h) */
-#    include <winsock2.h>
-#endif
+ * the header dependencies early (winsock2, before windows.h).
+ * It is needed to have RPyThreadStaticTLS, too. */
+#include "thread.h"
 
 void LL_stack_unwind(void);
 int LL_stack_too_big_slowpath(void);



More information about the Pypy-commit mailing list