s3: Fix bug 7202 for multi-threaded applications
authorVolker Lendecke <vl@samba.org>
Sun, 21 Mar 2010 16:49:06 +0000 (17:49 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 29 Mar 2010 07:41:05 +0000 (09:41 +0200)
Thanks to Sergey Tereschenko <serg.partizan@gmail.com> for providing good
feedback!

Volker
(cherry picked from commit 68ea9765177f1c343750d9a5d199ec5af52b9678)

source3/configure.in

index f744761d00ab03c8c9f1bddf79be3cd1e650afd6..a9b9e4789aebc350757fb36fe5907e1c95f26909 100644 (file)
@@ -6336,6 +6336,7 @@ if test x"$PTHREAD_CFLAGS" != xerror -a x"$PTHREAD_LDFLAGS" != xerror; then
        AC_CHECK_HEADERS(pthread.h)
        CFLAGS=$ac_save_CFLAGS
        LDFLAGS=$ac_save_LDFLAGS
+       AC_DEFINE(HAVE_PTHREAD, 1, [Do we have pthreads around?])
 fi
 
 #################################################