diff options
| author | Ron Yorston <rmy@pobox.com> | 2017-11-03 14:16:08 +0000 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2017-11-03 14:16:08 +0000 |
| commit | d6ce08aeb85b3698ddaa281016b70e16aeb9fb35 (patch) | |
| tree | 02ad9bc0684859515fe891f3d6b0a1086e0db156 /include | |
| parent | ab450021a99ba66126cc6d668fb06ec3829a572b (diff) | |
| parent | a5060b8364faa7c677c8950f1315c451403b0660 (diff) | |
| download | busybox-w32-d6ce08aeb85b3698ddaa281016b70e16aeb9fb35.tar.gz busybox-w32-d6ce08aeb85b3698ddaa281016b70e16aeb9fb35.tar.bz2 busybox-w32-d6ce08aeb85b3698ddaa281016b70e16aeb9fb35.zip | |
Merge branch 'busybox' into merge
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 136bc33f5..5be5684da 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -168,6 +168,17 @@ | |||
| 168 | #ifndef HAVE_XTABS | 168 | #ifndef HAVE_XTABS |
| 169 | # define XTABS TAB3 | 169 | # define XTABS TAB3 |
| 170 | #endif | 170 | #endif |
| 171 | /* | ||
| 172 | * Use '%m' to append error string on platforms that support it, | ||
| 173 | * '%s' and strerror() on those that don't. | ||
| 174 | */ | ||
| 175 | #ifdef HAVE_PRINTF_PERCENTM | ||
| 176 | # define STRERROR_FMT "%m" | ||
| 177 | # define STRERROR_ERRNO /*nothing*/ | ||
| 178 | #else | ||
| 179 | # define STRERROR_FMT "%s" | ||
| 180 | # define STRERROR_ERRNO ,strerror(errno) | ||
| 181 | #endif | ||
| 171 | 182 | ||
| 172 | 183 | ||
| 173 | /* Some libc's forget to declare these, do it ourself */ | 184 | /* Some libc's forget to declare these, do it ourself */ |
