aboutsummaryrefslogtreecommitdiff
path: root/libbb/ptr_to_globals.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/ptr_to_globals.c')
-rw-r--r--libbb/ptr_to_globals.c4
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 */
15struct globals *ptr_to_globals; 15struct globals *ptr_to_globals;
16 16
17#ifdef __GLIBC__ 17#ifdef errno
18int *bb_errno; 18int *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 */
28struct globals *const ptr_to_globals __attribute__ ((section (".data"))); 28struct globals *const ptr_to_globals __attribute__ ((section (".data")));
29 29
30#ifdef __GLIBC__ 30#ifdef errno
31int *const bb_errno __attribute__ ((section (".data"))); 31int *const bb_errno __attribute__ ((section (".data")));
32#endif 32#endif
33 33