From 45fa321c2368d6728bab87f02a76b2bab9ec645d Mon Sep 17 00:00:00 2001 From: tg Date: Wed, 28 Mar 2012 23:09:24 +0000 Subject: [PATCH] fail in a clean way even on b0rken compilers --- sh.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sh.h b/sh.h index 6833ac9..d4d7b4c 100644 --- a/sh.h +++ b/sh.h @@ -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. -I’m sorry, Dave. I’m afraid I can’t do that. +int +im_sorry_dave(void) +{ + /* I’m sorry, Dave. I’m afraid I can’t do that. */ + return (thiswillneverbedefinedIhope()); +} #endif /* use this ipv strchr(s, 0) but no side effects in s! */