summaryrefslogtreecommitdiff
path: root/source3/lib/pthreadpool/wscript_build
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/pthreadpool/wscript_build')
-rw-r--r--source3/lib/pthreadpool/wscript_build13
1 files changed, 9 insertions, 4 deletions
diff --git a/source3/lib/pthreadpool/wscript_build b/source3/lib/pthreadpool/wscript_build
index 5488c3a5ea..2cdd2ab312 100644
--- a/source3/lib/pthreadpool/wscript_build
+++ b/source3/lib/pthreadpool/wscript_build
@@ -1,9 +1,14 @@
#!/usr/bin/env python
-bld.SAMBA3_SUBSYSTEM('PTHREADPOOL',
- source='pthreadpool.c',
- deps='pthread rt replace',
- enabled=bld.env.WITH_PTHREADPOOL)
+if bld.env.WITH_PTHREADPOOL:
+ bld.SAMBA3_SUBSYSTEM('PTHREADPOOL',
+ source='pthreadpool.c',
+ deps='pthread rt replace')
+else:
+ bld.SAMBA3_SUBSYSTEM('PTHREADPOOL',
+ source='pthreadpool_sync.c',
+ deps='replace')
+
bld.SAMBA3_BINARY('pthreadpooltest',
source='tests.c',