aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/cgo/gcc_dragonfly_amd64.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/cgo/gcc_dragonfly_amd64.c')
-rw-r--r--src/runtime/cgo/gcc_dragonfly_amd64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/cgo/gcc_dragonfly_amd64.c b/src/runtime/cgo/gcc_dragonfly_amd64.c
index e532ad69d6..bdfbf6b561 100644
--- a/src/runtime/cgo/gcc_dragonfly_amd64.c
+++ b/src/runtime/cgo/gcc_dragonfly_amd64.c
@@ -8,6 +8,7 @@
#include <signal.h>
#include <string.h>
#include "libcgo.h"
+#include "libcgo_unix.h"
static void* threadentry(void*);
static void (*setg_gcc)(void*);
@@ -42,7 +43,7 @@ _cgo_sys_thread_start(ThreadStart *ts)
// 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);