]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.15] gh-154144: Fix false positive from the stdbool.h guard in _testcapimodule...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 19 Jul 2026 15:38:01 +0000 (17:38 +0200)
committerGitHub <noreply@github.com>
Sun, 19 Jul 2026 15:38:01 +0000 (15:38 +0000)
(cherry picked from commit 8d11eb0c31efcfd1d504650a564d9a4b45cba721)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Misc/NEWS.d/next/Tests/2026-07-19-18-20-00.gh-issue-154144.tcbool.rst [new file with mode: 0644]
Modules/_testcapimodule.c

diff --git a/Misc/NEWS.d/next/Tests/2026-07-19-18-20-00.gh-issue-154144.tcbool.rst b/Misc/NEWS.d/next/Tests/2026-07-19-18-20-00.gh-issue-154144.tcbool.rst
new file mode 100644 (file)
index 0000000..dc1ac8b
--- /dev/null
@@ -0,0 +1 @@
+Fix building the :mod:`!_testcapi` module on NetBSD.
index 799390c270532874c4cdd5665446238b4b0f5305..fb18a866e62812866ed5352cfa916af3d3af1dda 100644 (file)
 #include "frameobject.h"          // PyFrame_New()
 #include "marshal.h"              // PyMarshal_WriteLongToFile()
 
+#ifdef bool
+#  error "The public headers should not include <stdbool.h>, see gh-90904"
+#endif
+
 #include <float.h>                // FLT_MAX
 #include <signal.h>
 #include <stddef.h>               // offsetof()
 #  include <sys/sysctl.h>         // sysctlbyname()
 #endif
 
-#ifdef bool
-#  error "The public headers should not include <stdbool.h>, see gh-48924"
-#endif
-
 #include "_testcapi/util.h"