summaryrefslogtreecommitdiff
path: root/source4/smbd/process_model.m4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-05-17 07:17:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:53:48 -0500
commitb340a61cb935e014090eed7105f8f50c3a00e71b (patch)
treeeb3b1a64fb9203bea975a16215452fc04487d30d /source4/smbd/process_model.m4
parent92dd542aa01f2c3b64ca104696c731919f4d7ec7 (diff)
downloadsamba-b340a61cb935e014090eed7105f8f50c3a00e71b.tar.gz
samba-b340a61cb935e014090eed7105f8f50c3a00e71b.tar.bz2
samba-b340a61cb935e014090eed7105f8f50c3a00e71b.zip
r755: - disallow process_model _thread when we don't have pwread/pwrite
and have to use the nonthreadsafe wrapper - add pread/pwrite wrapper to ntvfs_simple - fix const warning in ntvfs_simple metze (This used to be commit f0b2e42978a28204f497cccb07e407f409e3bf50)
Diffstat (limited to 'source4/smbd/process_model.m4')
-rw-r--r--source4/smbd/process_model.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/smbd/process_model.m4 b/source4/smbd/process_model.m4
index 93dfeddcef..cbeedd1729 100644
--- a/source4/smbd/process_model.m4
+++ b/source4/smbd/process_model.m4
@@ -11,6 +11,9 @@ AC_ARG_WITH(pthreads,
[ case "$withval" in
yes)
AC_MSG_RESULT(yes)
+ if test x"$ac_cv_func_pread" != x"yes" -o x"$ac_cv_func_pwrite" != x"yes";then
+ AC_MSG_ERROR([You cannot enable threads when you don't have pread/pwrite!])
+ fi
SMB_MODULE_DEFAULT(process_model_thread,STATIC)
SMB_EXT_LIB_ENABLE(PTHREAD,YES)
;;