]> granicus.if.org Git - python/commitdiff
Issue #27776: include process.h on Windows for getpid()
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 7 Sep 2016 00:03:03 +0000 (17:03 -0700)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 7 Sep 2016 00:03:03 +0000 (17:03 -0700)
Modules/_randommodule.c

index 1cf57aea18d9d6a37c6d3fd860bfba919680c50d..63759d5562489c79357b2216071ff3521e0723be 100644 (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