let printf stuff compile again after cstrerror-related change

This commit is contained in:
tg 2012-12-22 22:15:21 +00:00
parent 6d5e27a31a
commit 865728fb3d
1 changed files with 3 additions and 2 deletions

5
sh.h
View File

@ -164,7 +164,7 @@
#endif
#ifdef EXTERN
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.620 2012/12/22 00:03:42 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.621 2012/12/22 22:15:21 tg Exp $");
#endif
#define MKSH_VERSION "R41 2012/12/21"
@ -368,7 +368,8 @@ extern int revoke(const char *);
#endif
#if defined(DEBUG) || !HAVE_STRERROR
#define strerror dontuse_strerror /* poisoned */
#define strerror /* poisoned */ dontuse_strerror
#define cstrerror /* replaced */ cstrerror
extern const char *cstrerror(int);
#else
#define cstrerror(errnum) ((const char *)strerror(errnum))