diff options
Diffstat (limited to 'libbb/ptr_to_globals.c')
-rw-r--r-- | libbb/ptr_to_globals.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/ptr_to_globals.c b/libbb/ptr_to_globals.c index 8ba9cd154..2232c6864 100644 --- a/libbb/ptr_to_globals.c +++ b/libbb/ptr_to_globals.c | |||
@@ -14,7 +14,7 @@ struct globals; | |||
14 | * but here we make it live in R/W memory */ | 14 | * but here we make it live in R/W memory */ |
15 | struct globals *ptr_to_globals; | 15 | struct globals *ptr_to_globals; |
16 | 16 | ||
17 | #ifdef __GLIBC__ | 17 | #ifdef errno |
18 | int *bb_errno; | 18 | int *bb_errno; |
19 | #endif | 19 | #endif |
20 | 20 | ||
@@ -27,7 +27,7 @@ int *bb_errno; | |||
27 | * on weird architectures, compilers, linkers and so on */ | 27 | * on weird architectures, compilers, linkers and so on */ |
28 | struct globals *const ptr_to_globals __attribute__ ((section (".data"))); | 28 | struct globals *const ptr_to_globals __attribute__ ((section (".data"))); |
29 | 29 | ||
30 | #ifdef __GLIBC__ | 30 | #ifdef errno |
31 | int *const bb_errno __attribute__ ((section (".data"))); | 31 | int *const bb_errno __attribute__ ((section (".data"))); |
32 | #endif | 32 | #endif |
33 | 33 | ||