From: Victor Stinner Date: Wed, 7 Sep 2016 00:03:03 +0000 (-0700) Subject: Issue #27776: include process.h on Windows for getpid() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f2a92018279e24c7b688376c1ad5521bef800aa;p=python Issue #27776: include process.h on Windows for getpid() --- diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index 1cf57aea18..63759d5562 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