projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
593f8ba
)
- fix compilation on standard-conforming compilers
author
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Fri, 6 Jun 2008 10:31:39 +0000
(10:31 -0000)
committer
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Fri, 6 Jun 2008 10:31:39 +0000
(10:31 -0000)
include/libbb.h
patch
|
blob
|
history
diff --git
a/include/libbb.h
b/include/libbb.h
index 1e4968bfaa2145099a110c12c42e86e5e05af7c3..c4d802ffd492291982bf1c14c4a36696e3a3d459 100644
(file)
--- a/
include/libbb.h
+++ b/
include/libbb.h
@@
-1287,7
+1287,7
@@
struct globals;
* 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(); \