From 6bed331e5960c9569f02dbeb5b0d3aca78f0c73f Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Mon, 22 Dec 2008 13:47:58 -0800 Subject: [PATCH] More compat changes --- lib/libzpool/include/sys/zfs_context.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libzpool/include/sys/zfs_context.h b/lib/libzpool/include/sys/zfs_context.h index ef22772ce8..d9be1eb293 100644 --- a/lib/libzpool/include/sys/zfs_context.h +++ b/lib/libzpool/include/sys/zfs_context.h @@ -190,9 +190,9 @@ _NOTE(CONSTCOND) } while (0) /* * Threads */ - -/* XXX: not portable */ -#define curthread ((void *)(uintptr_t)pthread_self()) +#define curthread ((void *)(uintptr_t)pthread_self()) +#define tsd_get(key) pthread_getspecific(key) +#define tsd_set(key, val) pthread_setspecific(key, val) typedef struct kthread kthread_t; typedef void (*thread_func_t)(void *);