diff options
author | Ismael Luceno <ismael@iodev.co.uk> | 2021-12-26 22:19:39 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-01-04 10:48:18 +0100 |
commit | c9d0f66fef3123f76954fa7549d0a6ec5dd549f8 (patch) | |
tree | e7f2802996e408319baf25c6221f27dc050e8803 /idlc | |
parent | 3698a523d7ce3278ac4e285e32d737951f317978 (diff) |
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 <glogow@fbihome.de>
(cherry picked from commit 9d0568609be69a2b533d9a4bf4d03c37c15e779d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127585
Reviewed-by: Ismael Luceno <ismael@iodev.co.uk>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/idlccompile.cxx | 5 |
1 files changed, 0 insertions, 5 deletions
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> |