idlc/source/idlccompile.cxx | 5 -----
1 file changed, 5 deletions(-)
New commits:
commit c9d0f66fef3123f76954fa7549d0a6ec5dd549f8
Author: Ismael Luceno <[email protected]>
AuthorDate: Sun Dec 26 22:19:39 2021 +0100
Commit: Xisco Fauli <[email protected]>
CommitDate: Tue Jan 4 10:48:18 2022 +0100
idlc: Always use sys/wait.h on UNIX
According to (and since) POSIX.1-1988 it's always <sys/wait.h>; and all
supported systems include it, back to 1995.
AFAICT, none of the systems mention <wait.h> in their manual pages.
musl libc produces the following warning if the non-standard header is
included:
/usr/include/wait.h:1:2: warning: #warning redirecting incorrect
#include <wait.h> to <sys/wait.h> [-Wcpp]
Change-Id: Iff1293a08ad080fdc987770596b10ef08cc145a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127537
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <[email protected]>
(cherry picked from commit 9d0568609be69a2b533d9a4bf4d03c37c15e779d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127585
Reviewed-by: Ismael Luceno <[email protected]>
Reviewed-by: Xisco Fauli <[email protected]>
diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx
index 6db9a615d316..0d06ea59cdbe 100644
--- a/idlc/source/idlccompile.cxx
+++ b/idlc/source/idlccompile.cxx
@@ -35,12 +35,7 @@
#ifdef SAL_UNX
#include <errno.h>
#include <unistd.h>
-#if defined(MACOSX) || defined(FREEBSD) || defined(NETBSD) || \
- defined(AIX) || defined(OPENBSD) || defined(DRAGONFLY) || defined(HAIKU)
#include <sys/wait.h>
-#else
-#include <wait.h>
-#endif
#endif
#include <string.h>