summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjca <>2017-11-04 22:53:57 +0000
committerjca <>2017-11-04 22:53:57 +0000
commit6298fe5f892c4094450148524c15044171a975a0 (patch)
treee0d9dee5d1285293579db7e7059b7dcaa1fc23fd /src
parentf5ebbd88824da8ec81de0a84f856466ff22a3574 (diff)
downloadopenbsd-6298fe5f892c4094450148524c15044171a975a0.tar.gz
openbsd-6298fe5f892c4094450148524c15044171a975a0.tar.bz2
openbsd-6298fe5f892c4094450148524c15044171a975a0.zip
Revert recent changes to unbreak ports/net/samba
While it is not clear (to me) why that ports ends up with corrupted shared libs, reverting those changes fixes the issue and should allow us to close p2k17 more smoothly. Discussed with a bunch, ok ajacoutot@ guenther@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/include/thread_private.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/libc/include/thread_private.h b/src/lib/libc/include/thread_private.h
index 6c695ee5ee..fd530d7dff 100644
--- a/src/lib/libc/include/thread_private.h
+++ b/src/lib/libc/include/thread_private.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: thread_private.h,v 1.31 2017/10/28 21:23:14 guenther Exp $ */ 1/* $OpenBSD: thread_private.h,v 1.32 2017/11/04 22:53:57 jca Exp $ */
2 2
3/* PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman <marc@snafu.org> */ 3/* PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman <marc@snafu.org> */
4 4
@@ -344,6 +344,12 @@ struct rthread_storage {
344 void *data; 344 void *data;
345}; 345};
346 346
347struct rthread_cleanup_fn {
348 void (*fn)(void *);
349 void *arg;
350 struct rthread_cleanup_fn *next;
351};
352
347struct tib; 353struct tib;
348struct stack; 354struct stack;
349struct pthread { 355struct pthread {
@@ -361,7 +367,7 @@ struct pthread {
361 pthread_cond_t blocking_cond; 367 pthread_cond_t blocking_cond;
362 struct pthread_attr attr; 368 struct pthread_attr attr;
363 struct rthread_storage *local_storage; 369 struct rthread_storage *local_storage;
364 struct __thread_cleanup *cleanup_fns; 370 struct rthread_cleanup_fn *cleanup_fns;
365 371
366 /* cancel received in a delayed cancel block? */ 372 /* cancel received in a delayed cancel block? */
367 int delayed_cancel; 373 int delayed_cancel;