(original) (raw)
changeset: 103178:ebbfc053360a user: Victor Stinner victor.stinner@gmail.com date: Tue Sep 06 17:03:03 2016 -0700 files: Modules/_randommodule.c description: Issue #27776: include process.h on Windows for getpid() diff -r 82017ba54447 -r ebbfc053360a Modules/_randommodule.c --- a/Modules/_randommodule.c Tue Sep 06 16:58:36 2016 -0700 +++ b/Modules/_randommodule.c Tue Sep 06 17:03:03 2016 -0700 @@ -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/victor.stinner@gmail.com