IPC: allow QSystemSemaphorePosix to build on Windows
The MinGW-provided winpthreads has <semaphore.h> and the necessary functions, though the source seems to implement sem_open() as an unconditional errno = ENOSYS; return SEM_FAIL; But in case they actually implement it, we enable support. Change-Id: I3d74c753055744deb8acfffd1723e982d05651b5 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
parent
4141c5e221
commit
968d9584ff
@ -17,7 +17,13 @@
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "private/qcore_unix_p.h"
|
||||
#ifdef Q_OS_UNIX
|
||||
# include "private/qcore_unix_p.h"
|
||||
#else
|
||||
#define EINTR_LOOP_VAL(var, val, cmd) \
|
||||
(void)var; var = cmd
|
||||
#define EINTR_LOOP(var, cmd) EINTR_LOOP_VAL(var, -1, cmd)
|
||||
#endif
|
||||
|
||||
// OpenBSD 4.2 doesn't define EIDRM, see BUGS section:
|
||||
// http://www.openbsd.org/cgi-bin/man.cgi?query=semop&manpath=OpenBSD+4.2
|
||||
|
Loading…
Reference in New Issue
Block a user