diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-09-07 00:03:03 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-09-07 00:03:03 (GMT) |
commit | 9f2a92018279e24c7b688376c1ad5521bef800aa (patch) | |
tree | 37fa258e96827780394fbd70b30f5387fdd005f7 /Modules | |
parent | 2740e460897cf9efcdb8c83076fd640016f007d4 (diff) | |
download | cpython-9f2a92018279e24c7b688376c1ad5521bef800aa.zip cpython-9f2a92018279e24c7b688376c1ad5521bef800aa.tar.gz cpython-9f2a92018279e24c7b688376c1ad5521bef800aa.tar.bz2 |
Issue #27776: include process.h on Windows for getpid()
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_randommodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <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 |