summaryrefslogtreecommitdiffstats
path: root/Parser/pgenmain.c
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-06-17 10:25:01 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-06-17 10:25:01 (GMT)
commit531396c764d12ca6ec02a4e199350fee1879499a (patch)
tree0ac3177f163f5ab95931947e6f6229e63291063b /Parser/pgenmain.c
parentd4b45cb9ca426df78aee5ceb53b65aa826498186 (diff)
downloadcpython-531396c764d12ca6ec02a4e199350fee1879499a.zip
cpython-531396c764d12ca6ec02a4e199350fee1879499a.tar.gz
cpython-531396c764d12ca6ec02a4e199350fee1879499a.tar.bz2
Issue #27336: Fix compilation failures --without-threads
Diffstat (limited to 'Parser/pgenmain.c')
-rw-r--r--Parser/pgenmain.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Parser/pgenmain.c b/Parser/pgenmain.c
index d5a13fe..e9d3082 100644
--- a/Parser/pgenmain.c
+++ b/Parser/pgenmain.c
@@ -38,12 +38,13 @@ Py_Exit(int sts)
}
#ifdef WITH_THREAD
-/* Functions needed by obmalloc.c */
+/* Needed by obmalloc.c */
int PyGILState_Check(void)
{ return 1; }
+#endif
+
void _PyMem_DumpTraceback(int fd, const void *ptr)
{}
-#endif
int
main(int argc, char **argv)