From 9080cc153cc2b09881c3245becbd68534db18d7c Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 17 Apr 2011 16:53:54 -0400 Subject: clean up handling of thread/nothread mode, locking --- src/internal/stdio_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/internal/stdio_impl.h') diff --git a/src/internal/stdio_impl.h b/src/internal/stdio_impl.h index 90a8214b..76b58be9 100644 --- a/src/internal/stdio_impl.h +++ b/src/internal/stdio_impl.h @@ -24,7 +24,7 @@ #define UNGET 8 -#define FLOCK(f) ((libc.lockfile && (f)->lock>=0) ? (libc.lockfile((f)),0) : 0) +#define FLOCK(f) ((libc.threads_minus_1 && (f)->lock>=0) ? (__lockfile((f)),0) : 0) #define FUNLOCK(f) ((f)->lockcount && (--(f)->lockcount || ((f)->lock=0))) #define F_PERM 1 -- cgit v1.2.1