Author: bart
Date: 2008-03-03 07:40:54 +0000 (Mon, 03 Mar 2008)
New Revision: 7544

Log:
Made exp-drd/tests/trylock.c compile with older glibc versions.

Modified:
   trunk/exp-drd/tests/trylock.c


Modified: trunk/exp-drd/tests/trylock.c
===================================================================
--- trunk/exp-drd/tests/trylock.c       2008-03-03 02:15:03 UTC (rev 7543)
+++ trunk/exp-drd/tests/trylock.c       2008-03-03 07:40:54 UTC (rev 7544)
@@ -1,3 +1,15 @@
+/** Test interception of the various pthread_timed*lock() and 
pthread_try*lock()
+ *  functions. If any of these are not intercepted, an error message will be
+ *  printed at unlock time.
+ */
+
+
+/* Needed for older glibc's (2.3 and older, at least) who don't
+   otherwise "know" about pthread_rwlock_anything or about
+   PTHREAD_MUTEX_RECURSIVE (amongst things). */
+
+#define _GNU_SOURCE 1
+
 #include <stdio.h>
 #include <assert.h>
 #include <pthread.h>
@@ -2,2 +14,3 @@
 
+
 int main(int argc, char** argv)


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-developers mailing list
Valgrind-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to