diff options
Diffstat (limited to 'src/runtime/cgo/gcc_linux_mips64x.c')
-rw-r--r-- | src/runtime/cgo/gcc_linux_mips64x.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/cgo/gcc_linux_mips64x.c b/src/runtime/cgo/gcc_linux_mips64x.c index 8a95629f56..e0ce08f4e5 100644 --- a/src/runtime/cgo/gcc_linux_mips64x.c +++ b/src/runtime/cgo/gcc_linux_mips64x.c @@ -10,6 +10,7 @@ #include <string.h> #include <signal.h> #include "libcgo.h" +#include "libcgo_unix.h" static void *threadentry(void*); @@ -37,7 +38,7 @@ _cgo_sys_thread_start(ThreadStart *ts) pthread_attr_getstacksize(&attr, &size); // Leave stacklo=0 and set stackhi=size; mstack will do the rest. ts->g->stackhi = size; - err = pthread_create(&p, &attr, threadentry, ts); + err = _cgo_try_pthread_create(&p, &attr, threadentry, ts); pthread_sigmask(SIG_SETMASK, &oset, nil); |