Browse Source

Add a utility macro.

Manuel Novoa III 21 years ago
parent
commit
6e731aa97a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      libc/sysdeps/linux/common/bits/uClibc_stdio.h

+ 4 - 0
libc/sysdeps/linux/common/bits/uClibc_stdio.h

@@ -217,12 +217,16 @@
 		pthread_mutex_trylock(&(STREAM)->lock); \
 	}
 
+#define __STDIO_SET_USER_LOCKING(STREAM)   	((STREAM)->user_locking = 1)
+
 #else  /* __STDIO_THREADSAFE */
 
 #define __STDIO_THREADLOCK(STREAM)
 #define __STDIO_THREADUNLOCK(STREAM)
 #define __STDIO_THREADTRYLOCK(STREAM)
 
+#define __STDIO_SET_USER_LOCKING(STREAM)
+
 #endif /* __STDIO_THREADSAFE */
 
 /* This file may eventually have two personalities: