Issue #27776: include process.h on Windows for getpid()

This commit is contained in:
Victor Stinner 2016-09-06 17:03:03 -07:00
parent 2740e46089
commit 9f2a920182
1 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,9 @@
#include "Python.h"
#include <time.h> /* for seeding to current time */
#ifdef HAVE_PROCESS_H
# include <process.h> /* needed for getpid() */
#endif
/* Period parameters -- These are all magic. Don't change. */
#define N 624