[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: avoid two GCC11 warnings
From: |
Bruno Haible |
Subject: |
Re: avoid two GCC11 warnings |
Date: |
Thu, 26 Nov 2020 22:16:02 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-193-generic; KDE/5.18.0; x86_64; ; ) |
Hi Jim,
> Here's a first crack at the list of modules with a use of _exit, yet
> no dependency on unistd:
Oh, indeed. Yes, a few of them do need the dependency as well. Thanks.
2020-11-26 Bruno Haible <bruno@clisp.org>
Fix dependencies of modules that use '_exit' on native Windows.
Reported by Jim Meyering in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
* modules/_Exit (Depends-on): Add unistd.
* modules/closein (Depends-on): Likewise.
* modules/closeout (Depends-on): Likewise.
* modules/forkpty (Depends-on): Likewise.
* modules/posix_spawn-internal (Depends-on): Likewise.
* modules/savewd (Depends-on): Likewise.
* modules/stat-time-tests (Depends-on): Likewise.
diff --git a/modules/_Exit b/modules/_Exit
index 179a02b..cefebdc 100644
--- a/modules/_Exit
+++ b/modules/_Exit
@@ -7,6 +7,7 @@ m4/_Exit.m4
Depends-on:
stdlib
+unistd
configure.ac:
gl_FUNC__EXIT
diff --git a/modules/closein b/modules/closein
index 6a34d83..f0c1287 100644
--- a/modules/closein
+++ b/modules/closein
@@ -10,6 +10,7 @@ closeout
freadahead
fflush
stdbool
+unistd
configure.ac:
diff --git a/modules/closeout b/modules/closeout
index e51489f..32fd923 100644
--- a/modules/closeout
+++ b/modules/closeout
@@ -12,6 +12,7 @@ error
quotearg
exitfail
stdbool
+unistd
configure.ac:
diff --git a/modules/forkpty b/modules/forkpty
index b04a4da..fdf5fe4 100644
--- a/modules/forkpty
+++ b/modules/forkpty
@@ -8,6 +8,7 @@ m4/pty.m4
Depends-on:
pty
+unistd
openpty
login_tty
diff --git a/modules/posix_spawn-internal b/modules/posix_spawn-internal
index a0b57fa..920b4c4 100644
--- a/modules/posix_spawn-internal
+++ b/modules/posix_spawn-internal
@@ -14,6 +14,7 @@ errno
open
sh-filename
strchrnul
+unistd
configure.ac:
gl_POSIX_SPAWN
diff --git a/modules/savewd b/modules/savewd
index 198596e..a0ea64f 100644
--- a/modules/savewd
+++ b/modules/savewd
@@ -20,6 +20,7 @@ raise
stdbool
stdlib
sys_wait
+unistd
xalloc
configure.ac:
diff --git a/modules/stat-time-tests b/modules/stat-time-tests
index c512eca..8db2369 100644
--- a/modules/stat-time-tests
+++ b/modules/stat-time-tests
@@ -7,6 +7,7 @@ Depends-on:
intprops
nanosleep
time
+unistd
configure.ac: