svn commit: branches/uClibc_0_9_28/libc: stdio sysdeps/linux/common/bits

vapier at uclibc.org vapier at uclibc.org
Sun Jan 28 07:58:46 UTC 2007


Author: vapier
Date: 2007-01-27 23:58:45 -0800 (Sat, 27 Jan 2007)
New Revision: 17583

Log:
fix from trunk for compile failure when threading is disabled

Modified:
   branches/uClibc_0_9_28/libc/stdio/_stdio.h
   branches/uClibc_0_9_28/libc/sysdeps/linux/common/bits/uClibc_mutex.h


Changeset:
Modified: branches/uClibc_0_9_28/libc/stdio/_stdio.h
===================================================================
--- branches/uClibc_0_9_28/libc/stdio/_stdio.h	2007-01-28 07:26:32 UTC (rev 17582)
+++ branches/uClibc_0_9_28/libc/stdio/_stdio.h	2007-01-28 07:58:45 UTC (rev 17583)
@@ -38,6 +38,7 @@
 #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; \
@@ -64,14 +65,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
 

Modified: branches/uClibc_0_9_28/libc/sysdeps/linux/common/bits/uClibc_mutex.h
===================================================================
--- branches/uClibc_0_9_28/libc/sysdeps/linux/common/bits/uClibc_mutex.h	2007-01-28 07:26:32 UTC (rev 17582)
+++ branches/uClibc_0_9_28/libc/sysdeps/linux/common/bits/uClibc_mutex.h	2007-01-28 07:58:45 UTC (rev 17583)
@@ -65,7 +65,7 @@
 
 #define __UCLIBC_MUTEX(M)			void *__UCLIBC_MUTEX_DUMMY_ ## M
 #define __UCLIBC_MUTEX_INIT(M,I)	extern void *__UCLIBC_MUTEX_DUMMY_ ## M
-#define __UCLIBC_MUTEX_STATIC(M)	extern void *__UCLIBC_MUTEX_DUMMY_ ## M
+#define __UCLIBC_MUTEX_STATIC(M,I)	extern void *__UCLIBC_MUTEX_DUMMY_ ## M
 #define __UCLIBC_MUTEX_EXTERN(M)	extern void *__UCLIBC_MUTEX_DUMMY_ ## M
 
 #define __UCLIBC_MUTEX_LOCK_CANCEL_UNSAFE(M)		((void)0)




More information about the uClibc-cvs mailing list