diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 5e0b438be..385b30f16 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -165,6 +165,14 @@ | |||
165 | #endif | 165 | #endif |
166 | 166 | ||
167 | 167 | ||
168 | #if defined(__GLIBC__) | ||
169 | /* glibc uses __errno_location() to get a ptr to errno */ | ||
170 | /* We can just memorize it once - no multithreading in busybox :) */ | ||
171 | extern int *const bb_errno; | ||
172 | #undef errno | ||
173 | #define errno (*bb_errno) | ||
174 | #endif | ||
175 | |||
168 | #if defined(__GLIBC__) && __GLIBC__ < 2 | 176 | #if defined(__GLIBC__) && __GLIBC__ < 2 |
169 | int vdprintf(int d, const char *format, va_list ap); | 177 | int vdprintf(int d, const char *format, va_list ap); |
170 | #endif | 178 | #endif |