summaryrefslogtreecommitdiffstats
path: root/src/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugin.h')
-rw-r--r--src/plugin.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugin.h b/src/plugin.h
index c0c4e60..bce8112 100644
--- a/src/plugin.h
+++ b/src/plugin.h
@@ -23,7 +23,13 @@
#define plugin_h
struct plugin_state {
+#ifdef USE_PTHREADS
pthread_t tid;
+#elif defined(USE_NSPR_THREADS)
+ PRThread *tid;
+#else
+#error "Don't know which threading model to use!"
+#endif
char *plugin_base;
Slapi_ComponentId *plugin_identity;
Slapi_PluginDesc *plugin_desc;