summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsmael Luceno <ismael@iodev.co.uk>2021-12-26 22:19:39 +0100
committerJan-Marek Glogowski <glogow@fbihome.de>2021-12-28 14:55:02 +0100
commit9d0568609be69a2b533d9a4bf4d03c37c15e779d (patch)
tree39ed7059a9da423cee9ea061cf5baad470980767
parentUpdate git submodules (diff)
downloadcore-9d0568609be69a2b533d9a4bf4d03c37c15e779d.tar.gz
core-9d0568609be69a2b533d9a4bf4d03c37c15e779d.zip
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>
-rw-r--r--idlc/source/idlccompile.cxx5
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>