summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-01-26 00:17:10 +0100
committerBjörn Jacke <bj@sernet.de>2010-01-26 00:19:10 +0100
commit5439e1a03f66ff9722987f908babfd71ebd698f1 (patch)
treefed6e991abd9bcd0fb9ca73040b33953d1d57320 /source3/libsmb
parent60a3086d78d9cf445034172f594325cb7b929d24 (diff)
downloadsamba-5439e1a03f66ff9722987f908babfd71ebd698f1.tar.gz
samba-5439e1a03f66ff9722987f908babfd71ebd698f1.tar.bz2
samba-5439e1a03f66ff9722987f908babfd71ebd698f1.zip
s3: fix detection and flags for using pthread
I hope this fixes the build on Tru64, IRIX and maybe bug #6983
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/libsmb_thread_posix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/libsmb_thread_posix.c b/source3/libsmb/libsmb_thread_posix.c
index 6519659c25..8c8299dd7f 100644
--- a/source3/libsmb/libsmb_thread_posix.c
+++ b/source3/libsmb/libsmb_thread_posix.c
@@ -17,8 +17,11 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include "includes.h"
+#ifdef HAVE_PTHREAD_H
#include <pthread.h>
+#endif
#include "libsmbclient.h"
#include "libsmb_internal.h"
@@ -47,3 +50,4 @@ smbc_thread_posix(void)
{
smb_thread_set_functions(&tf);
}
+