Merge with 3.2 for #14359.
diff --git a/Misc/ACKS b/Misc/ACKS
index eeb61e0..2cd02bf 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -188,6 +188,7 @@
 Brad Clements
 Robbie Clemons
 Steve Clift
+Hervé Coatanhay
 Nick Coghlan
 Josh Cogliati
 Dave Cole
diff --git a/Misc/NEWS b/Misc/NEWS
index 93fb4bd..f03aeb5 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -129,6 +129,9 @@
 Build
 -----
 
+- Issue #14359: Only use O_CLOEXEC in _posixmodule.c if it is defined.
+  Based on patch from Hervé Coatanhay.
+
 - Issue #14321: Do not run pgen during the build if files are up to date.
 
 - Issue #14324: Fix configure tests for cross builds.