aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2023-12-19 20:32:47 +0100
committerTheo Buehler <tb@openbsd.org>2023-12-19 20:32:47 +0100
commitcfda276d4ceb4e53316df93232166c963ef73d47 (patch)
tree96ef56a16f7ee80d2de67a59b77d6a0c0128873c /include
parent2546ec76fdc7812b02cca24b5477b6a9355201ad (diff)
parentc515f24515e226c1f9b402adacac146868a273f0 (diff)
downloadportable-cfda276d4ceb4e53316df93232166c963ef73d47.tar.gz
portable-cfda276d4ceb4e53316df93232166c963ef73d47.tar.bz2
portable-cfda276d4ceb4e53316df93232166c963ef73d47.zip
Land #983
Diffstat (limited to 'include')
-rw-r--r--include/compat/pthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/compat/pthread.h b/include/compat/pthread.h
index ed1b9dc..8211dda 100644
--- a/include/compat/pthread.h
+++ b/include/compat/pthread.h
@@ -48,7 +48,7 @@ pthread_once(pthread_once_t *once, void (*cb) (void))
48 struct _pthread_win32_cb_arg arg = { .cb = cb }; 48 struct _pthread_win32_cb_arg arg = { .cb = cb };
49 BOOL rc = InitOnceExecuteOnce(&once->once, _pthread_once_win32_cb, &arg, NULL); 49 BOOL rc = InitOnceExecuteOnce(&once->once, _pthread_once_win32_cb, &arg, NULL);
50 if (rc == 0) 50 if (rc == 0)
51 return -1; 51 return EINVAL;
52 else 52 else
53 return 0; 53 return 0;
54} 54}