git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8670
])
+# Check whether FILE has a member called _lock and whether it's a pointer.
+
+AC_MSG_CHECKING([for FILE::_lock])
+
+AC_TRY_COMPILE(
+[
+ #include <stdio.h>
+], [
+ void *p;
+ p = stdout->_lock;
+ return 0;
+], [
+AC_MSG_RESULT([yes])
+AC_DEFINE([HAVE_LIBC_FILE_LOCK], 1,
+ [Define to 1 if FILE has a member called _lock.])
+], [
+AC_MSG_RESULT([no])
+])
+
+
# Check whether pthread_mutex_t has a member called __m_kind.
AC_MSG_CHECKING([for pthread_mutex_t::__m_kind])
AC_CHECK_HEADERS([ \
endian.h \
mqueue.h \
- bits/libc-lock.h \
sys/endian.h \
sys/epoll.h \
sys/eventfd.h \
/* more than one thread. Suppress data race reports on these objects. */
DRD_IGNORE_VAR(*stdout);
DRD_IGNORE_VAR(*stderr);
-#if defined(HAVE_BITS_LIBC_LOCK_H)
+#if defined(HAVE_LIBC_FILE_LOCK)
DRD_IGNORE_VAR(*(pthread_mutex_t*)(stdout->_lock));
DRD_IGNORE_VAR(*(pthread_mutex_t*)(stderr->_lock));
#endif