--- a/nt/mingw-cfg.site
+++ b/nt/mingw-cfg.site
@@ -29,6 +29,10 @@
 # are necessary to steer the test in the direction you need, by
 # judiciously setting variables that control the test results.
 
+# We want to use sys/wait.h from nt/inc
+# https://lists.gnu.org/archive/html/help-gnu-emacs/2023-05/msg00107.html
+ac_cv_header_sys_wait_h=yes
+
 # We want to use getopt.h from gnulib
 ac_cv_header_getopt_h=no
 
