[pypy-svn] r72568 - pypy/trunk/pypy/translator/c/src
arigo at codespeak.net
arigo at codespeak.net
Mon Mar 22 16:28:13 CET 2010
Author: arigo
Date: Mon Mar 22 16:28:11 2010
New Revision: 72568
Modified:
pypy/trunk/pypy/translator/c/src/thread_pthread.h
Log:
Silence a warning in case we compile in non-standalone mode.
Modified: pypy/trunk/pypy/translator/c/src/thread_pthread.h
==============================================================================
--- pypy/trunk/pypy/translator/c/src/thread_pthread.h (original)
+++ pypy/trunk/pypy/translator/c/src/thread_pthread.h Mon Mar 22 16:28:11 2010
@@ -16,7 +16,9 @@
/* The following is hopefully equivalent to what CPython does
(which is trying to compile a snippet of code using it) */
#ifdef PTHREAD_SCOPE_SYSTEM
-# define PTHREAD_SYSTEM_SCHED_SUPPORTED
+# ifndef PTHREAD_SYSTEM_SCHED_SUPPORTED
+# define PTHREAD_SYSTEM_SCHED_SUPPORTED
+# endif
#endif
/* The POSIX spec says that implementations supporting the sem_*
More information about the Pypy-commit
mailing list