summaryrefslogtreecommitdiff
path: root/idlc/source
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 /idlc/source
parent488029489480fe6786be7b2dc1c9b38185b7e52e (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>
Diffstat (limited to 'idlc/source')
-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>