From b340a61cb935e014090eed7105f8f50c3a00e71b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 17 May 2004 07:17:51 +0000 Subject: 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) --- source4/smbd/process_model.m4 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/smbd/process_model.m4') 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) ;; -- cgit