svn commit: trunk/busybox/include

aldot at busybox.net aldot at busybox.net
Fri Jun 6 10:31:42 UTC 2008


Author: aldot
Date: 2008-06-06 03:31:39 -0700 (Fri, 06 Jun 2008)
New Revision: 22248

Log:
- fix compilation on standard-conforming compilers


Modified:
   trunk/busybox/include/libbb.h


Changeset:
Modified: trunk/busybox/include/libbb.h
===================================================================
--- trunk/busybox/include/libbb.h	2008-06-06 08:40:28 UTC (rev 22247)
+++ trunk/busybox/include/libbb.h	2008-06-06 10:31:39 UTC (rev 22248)
@@ -1287,7 +1287,7 @@
  * If you want to assign a value, use SET_PTR_TO_GLOBALS(x) */
 extern struct globals *const ptr_to_globals;
 /* At least gcc 3.4.6 on mipsel system needs optimization barrier */
-#define barrier() asm volatile("":::"memory")
+#define barrier() __asm__ __volatile__("":::"memory")
 #define SET_PTR_TO_GLOBALS(x) do { \
 	(*(struct globals**)&ptr_to_globals) = (x); \
 	barrier(); \




More information about the busybox-cvs mailing list