summaryrefslogtreecommitdiff
path: root/m4/lock.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2006-09-22 20:10:26 +0000
committerBruno Haible <bruno@clisp.org>2006-09-22 20:10:26 +0000
commite1c5c74989afaf386aa8516956aba0a16df777b7 (patch)
tree7f3809f62779828db74c62b8b36af710ac2c804f /m4/lock.m4
parente40cf4e4eb8a15c5982664e9ae8546661e02f4fd (diff)
downloadgnulib-e1c5c74989afaf386aa8516956aba0a16df777b7.tar.gz
Avoid warning at configure time with "gcc -Wall".
Diffstat (limited to 'm4/lock.m4')
-rw-r--r--m4/lock.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/lock.m4 b/m4/lock.m4
index 1ab72164f7..94c1870daf 100644
--- a/m4/lock.m4
+++ b/m4/lock.m4
@@ -1,4 +1,4 @@
-# lock.m4 serial 4 (gettext-0.15.1)
+# lock.m4 serial 5 (gettext-0.15.1)
dnl Copyright (C) 2005-2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -147,6 +147,7 @@ AC_HELP_STRING([--disable-threads], [build without multithread safety]),
error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
#else
int x = (int)PTHREAD_MUTEX_RECURSIVE;
+return !x;
#endif],
[AC_DEFINE([HAVE_PTHREAD_MUTEX_RECURSIVE], 1,
[Define if the <pthread.h> defines PTHREAD_MUTEX_RECURSIVE.])])