diff options
Diffstat (limited to 'src/corelib/kernel/qfunctions_nacl.cpp')
-rw-r--r-- | src/corelib/kernel/qfunctions_nacl.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/corelib/kernel/qfunctions_nacl.cpp b/src/corelib/kernel/qfunctions_nacl.cpp index 5234452581..1c66ea5b23 100644 --- a/src/corelib/kernel/qfunctions_nacl.cpp +++ b/src/corelib/kernel/qfunctions_nacl.cpp @@ -82,7 +82,6 @@ void pthread_testcancel(void) } - int pthread_cancel(pthread_t) { return 0; @@ -140,10 +139,12 @@ int sigaction(int, const struct sigaction *, struct sigaction *) return 0; } +#ifndef Q_OS_NACL_EMSCRIPTEN int open(const char *, int, ...) { return 0; } +#endif int open64(const char *, int, ...) { @@ -155,12 +156,12 @@ long pathconf(const char *, int) return 0; } +#ifndef Q_OS_NACL_EMSCRIPTEN int access(const char *, int) { return 0; } -#ifndef Q_OS_NACL_EMSCRIPTEN typedef long off64_t; off64_t ftello64(void *) { @@ -197,8 +198,6 @@ int unsetenv(const char *name) } #endif -} // Extern C - int select(int, fd_set *, fd_set *, fd_set *, struct timeval *) { return 0; @@ -209,10 +208,9 @@ int pselect(int nfds, fd_set * readfds, fd_set * writefds, fd_set * errorfds, co return 0; } -#ifdef Q_OS_NACL_EMSCRIPTEN - -// pthread stubs (no thrading support in emscripten) +} // Extern C +#if defined(Q_OS_NACL_EMSCRIPTEN) && !defined(__EMSCRIPTEN_PTHREADS__) int pthread_setcancelstate(int state, int *oldstate) { return 0; @@ -332,7 +330,6 @@ int sched_get_priority_min(int policy) { return 0; } - #endif // Several Qt components (such at the QtCore event dispatcher and networking) |