diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-06-06 10:31:39 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-06-06 10:31:39 +0000 |
commit | 797c96d8ce8765e11510e9dcd4c484ed3ced532c (patch) | |
tree | af2c8e4b593caa8ce118c418021fba9adbf758e9 /include | |
parent | 593f8baeb02dbbfd8971ebf24c90cec3390839c9 (diff) | |
download | busybox-w32-797c96d8ce8765e11510e9dcd4c484ed3ced532c.tar.gz busybox-w32-797c96d8ce8765e11510e9dcd4c484ed3ced532c.tar.bz2 busybox-w32-797c96d8ce8765e11510e9dcd4c484ed3ced532c.zip |
- fix compilation on standard-conforming compilers
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 1e4968bfa..c4d802ffd 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1287,7 +1287,7 @@ struct globals; | |||
1287 | * If you want to assign a value, use SET_PTR_TO_GLOBALS(x) */ | 1287 | * If you want to assign a value, use SET_PTR_TO_GLOBALS(x) */ |
1288 | extern struct globals *const ptr_to_globals; | 1288 | extern struct globals *const ptr_to_globals; |
1289 | /* At least gcc 3.4.6 on mipsel system needs optimization barrier */ | 1289 | /* At least gcc 3.4.6 on mipsel system needs optimization barrier */ |
1290 | #define barrier() asm volatile("":::"memory") | 1290 | #define barrier() __asm__ __volatile__("":::"memory") |
1291 | #define SET_PTR_TO_GLOBALS(x) do { \ | 1291 | #define SET_PTR_TO_GLOBALS(x) do { \ |
1292 | (*(struct globals**)&ptr_to_globals) = (x); \ | 1292 | (*(struct globals**)&ptr_to_globals) = (x); \ |
1293 | barrier(); \ | 1293 | barrier(); \ |