fail in a clean way even on b0rken compilers

This commit is contained in:
tg 2012-03-28 23:09:24 +00:00
parent 1f6ecff829
commit 45fa321c23
1 changed files with 7 additions and 2 deletions

9
sh.h
View File

@ -152,7 +152,7 @@
#endif
#ifdef EXTERN
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.536 2012/03/28 11:05:16 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.537 2012/03/28 23:09:24 tg Exp $");
#endif
#define MKSH_VERSION "R40 2012/03/27"
@ -444,7 +444,12 @@ char *ucstrstr(char *, const char *);
#if (!defined(MKSH_BUILDMAKEFILE4BSD) && !defined(MKSH_BUILDSH)) || (MKSH_BUILD_R != 409)
#error Must run Build.sh to compile this.
Im sorry, Dave. Im afraid I cant do that.
int
im_sorry_dave(void)
{
/* Im sorry, Dave. Im afraid I cant do that. */
return (thiswillneverbedefinedIhope());
}
#endif
/* use this ipv strchr(s, 0) but no side effects in s! */