[newlib-cygwin] Cygwin: testsuite: include sys/stat.h for chmod in posix_spawn/errors.c

Jeremy Drake via Cygwin-cvs <[email protected]>
Newsgroups gmane.os.cygwin.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=1b60f4861b701f0abd25a659cc7c87dc7fea3189

commit 1b60f4861b701f0abd25a659cc7c87dc7fea3189
Author: Jeremy Drake <[email protected]>
Date:   Thu Jun 26 12:43:36 2025 -0700

    Cygwin: testsuite: include sys/stat.h for chmod in posix_spawn/errors.c
    
    This is required on Linux.
    
    Signed-off-by: Jeremy Drake <[email protected]>

Diff:
---
 winsup/testsuite/winsup.api/posix_spawn/errors.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/winsup/testsuite/winsup.api/posix_spawn/errors.c b/winsup/testsuite/winsup.api/posix_spawn/errors.c
index 38563441f..cd5d65030 100644
--- a/winsup/testsuite/winsup.api/posix_spawn/errors.c
+++ b/winsup/testsuite/winsup.api/posix_spawn/errors.c
@@ -3,6 +3,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/stat.h>
 #include <unistd.h>
 
 static char tmppath[] = "pspawn.XXXXXX";
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.