From 9f2a92018279e24c7b688376c1ad5521bef800aa Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 6 Sep 2016 17:03:03 -0700 Subject: Issue #27776: include process.h on Windows for getpid() --- Modules/_randommodule.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index 1cf57ae..63759d5 100644 --- a/Modules/_randommodule.c +++ b/Modules/_randommodule.c @@ -68,6 +68,9 @@ #include "Python.h" #include /* for seeding to current time */ +#ifdef HAVE_PROCESS_H +# include /* needed for getpid() */ +#endif /* Period parameters -- These are all magic. Don't change. */ #define N 624 -- cgit v0.12