mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-12 22:24:53 +00:00
Made exp-drd/tests/trylock.c compile with older glibc versions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7544
This commit is contained in:
@@ -1,7 +1,20 @@
|
||||
/** 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>
|
||||
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
int r;
|
||||
|
||||
Reference in New Issue
Block a user