Author: Armin Rigo <[email protected]>
Branch: portable-threadlocal
Changeset: r74636:846aafb04a5d
Date: 2014-11-22 19:12 +0100
http://bitbucket.org/pypy/pypy/changeset/846aafb04a5d/
Log: missing include
diff --git a/rpython/translator/c/src/threadlocal.c
b/rpython/translator/c/src/threadlocal.c
--- a/rpython/translator/c/src/threadlocal.c
+++ b/rpython/translator/c/src/threadlocal.c
@@ -10,6 +10,7 @@
#ifdef _WIN32
# define RPyThreadGetIdent() GetCurrentThreadId()
#else
+# include <pthread.h>
# define RPyThreadGetIdent() ((long)pthread_self())
/* xxx This abuses pthread_self() by assuming it just returns a long.
According to comments in CPython's source code, the platforms where
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit