summaryrefslogtreecommitdiff
path: root/source3/lib/pthreadpool/wscript_build
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-06-13 13:05:17 +0200
committerJeremy Allison <jra@samba.org>2012-06-19 10:27:24 -0700
commit8b35a4de3880e1a3f64534db9748d5786a2ccb01 (patch)
treeccf8e28ba87c37a970f878d3fb9e37fff29b43c3 /source3/lib/pthreadpool/wscript_build
parent818fd7e917a7e2d6762e7b7f773a34e59c75b0df (diff)
downloadsamba-8b35a4de3880e1a3f64534db9748d5786a2ccb01.tar.gz
samba-8b35a4de3880e1a3f64534db9748d5786a2ccb01.tar.bz2
samba-8b35a4de3880e1a3f64534db9748d5786a2ccb01.zip
s3: Add a dummy implementation for the pthreadpool API
Signed-off-by: Jeremy Allison <jra@samba.org>
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',