aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index aff2825ac..daccf154a 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -162,6 +162,17 @@
162#ifndef HAVE_XTABS 162#ifndef HAVE_XTABS
163# define XTABS TAB3 163# define XTABS TAB3
164#endif 164#endif
165/*
166 * Use '%m' to append error string on platforms that support it,
167 * '%s' and strerror() on those that don't.
168 */
169#ifdef HAVE_PRINTF_PERCENTM
170# define STRERROR_FMT "%m"
171# define STRERROR_ERRNO /*nothing*/
172#else
173# define STRERROR_FMT "%s"
174# define STRERROR_ERRNO ,strerror(errno)
175#endif
165 176
166 177
167/* Some libc's forget to declare these, do it ourself */ 178/* Some libc's forget to declare these, do it ourself */