svn commit: trunk/uClibc/libc/stdio

andersen at uclibc.org andersen at uclibc.org
Tue Dec 12 21:43:59 UTC 2006


Author: andersen
Date: 2006-12-12 13:43:59 -0800 (Tue, 12 Dec 2006)
New Revision: 16857

Log:
Fix/disable locking when pthreads is disabled


Modified:
   trunk/uClibc/libc/stdio/_stdio.h


Changeset:
Modified: trunk/uClibc/libc/stdio/_stdio.h
===================================================================
--- trunk/uClibc/libc/stdio/_stdio.h	2006-12-12 18:11:58 UTC (rev 16856)
+++ trunk/uClibc/libc/stdio/_stdio.h	2006-12-12 21:43:59 UTC (rev 16857)
@@ -36,6 +36,8 @@
 #define __STDIO_THREADUNLOCK_OPENLIST_DEL		\
         __UCLIBC_MUTEX_UNLOCK(_stdio_openlist_del_lock)
 
+
+#ifdef __UCLIBC_HAS_THREADS__
 #define __STDIO_OPENLIST_INC_USE			\
 do {							\
 	__STDIO_THREADLOCK_OPENLIST_DEL;		\
@@ -62,14 +64,25 @@
 	__STDIO_THREADUNLOCK_OPENLIST_DEL;		\
 } while (0)
 
+#endif /* __UCLIBC_HAS_THREADS__ */
 #endif /* __STDIO_BUFFERS */
 
 #ifndef __STDIO_THREADLOCK_OPENLIST_DEL
 #define	__STDIO_THREADLOCK_OPENLIST_DEL     ((void)0)
+#endif
+#ifndef __STDIO_THREADUNLOCK_OPENLIST_DEL
 #define	__STDIO_THREADUNLOCK_OPENLIST_DEL   ((void)0)
+#endif
+#ifndef __STDIO_OPENLIST_INC_USE
 #define __STDIO_OPENLIST_INC_USE            ((void)0)
+#endif
+#ifndef __STDIO_OPENLIST_DEC_USE
 #define __STDIO_OPENLIST_DEC_USE            ((void)0)
+#endif
+#ifndef __STDIO_OPENLIST_INC_DEL_CNT
 #define __STDIO_OPENLIST_INC_DEL_CNT        ((void)0)
+#endif
+#ifndef __STDIO_OPENLIST_DEC_DEL_CNT
 #define __STDIO_OPENLIST_DEC_DEL_CNT        ((void)0)
 #endif
 




More information about the uClibc-cvs mailing list