]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-108765: multiprocessing.h includes <unistd.h> (#108823)
authorVictor Stinner <vstinner@python.org>
Sat, 2 Sep 2023 17:54:39 +0000 (19:54 +0200)
committerGitHub <noreply@github.com>
Sat, 2 Sep 2023 17:54:39 +0000 (17:54 +0000)
Modules/_multiprocessing/multiprocessing.h

index 296e0abb29a0f5851968a16695df8118090f9958..099004b437828efa9e408d6b7439650c10d44e39 100644 (file)
 #include "pythread.h"
 #include "pycore_signal.h"        // _PyOS_IsMainThread()
 
+#ifndef MS_WINDOWS
+#  include <unistd.h>             // sysconf()
+#endif
+
 /*
  * Platform includes and definitions
  */