author | Rich Felker <dalias@aerifal.cx> | 2014年06月10日 04:02:40 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014年06月10日 04:02:40 -0400 |
commit | df15168cf8baf34fb9c94e19eaa1a5c79c853970 (patch) | |
tree | 83a61274604cb4b4ed65e617d03d687666cb84c3 /src/stdio/ftrylockfile.c | |
parent | 64e32287f9d8a84217834bcc3387e9431cad9e4c (diff) | |
download | musl-df15168cf8baf34fb9c94e19eaa1a5c79c853970.tar.gz |
-rw-r--r-- | src/stdio/ftrylockfile.c | 2 |
diff --git a/src/stdio/ftrylockfile.c b/src/stdio/ftrylockfile.c index eef4e250..56cccafd 100644 --- a/src/stdio/ftrylockfile.c +++ b/src/stdio/ftrylockfile.c @@ -4,7 +4,7 @@ int ftrylockfile(FILE *f) { - int tid = pthread_self()->tid; + int tid = __pthread_self()->tid; if (f->lock == tid) { if (f->lockcount == LONG_MAX) return -1; |