diff --git a/sh.h b/sh.h index d903e03..5a17f44 100644 --- a/sh.h +++ b/sh.h @@ -122,7 +122,7 @@ #define __SCCSID(x) __IDSTRING(sccsid,x) #ifdef EXTERN -__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.298 2009/05/16 18:40:09 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.299 2009/05/16 19:34:07 tg Exp $"); #endif #define MKSH_VERSION "R38 2009/05/16" @@ -333,6 +333,12 @@ typedef uint32_t mksh_uari_t; #define PATH_MAX 1024 /* pathname size */ #endif +#ifdef MKSH_MIDNIGHTBSD01ASH_COMPAT +#define initvsn__add_1 " MidnightBSD-0.1-ash-compat" +#else +#define initvsn__add_1 "" +#endif + EXTERN const char *kshname; /* $0 */ EXTERN pid_t kshpid; /* $$, shell pid */ EXTERN pid_t procpid; /* pid of executing process */ @@ -342,11 +348,7 @@ EXTERN int exstat; /* exit status */ EXTERN int subst_exstat; /* exit status of last $(..)/`..` */ EXTERN const char *safe_prompt; /* safe prompt if PS1 substitution fails */ EXTERN const char initvsn[] I__("KSH_VERSION=@(#)MIRBSD KSH " - MKSH_VERSION -#ifdef MKSH_MIDNIGHTBSD01ASH_COMPAT - "MidnightBSD-0.1-ash-compat" -#endif - ); + MKSH_VERSION initvsn__add_1); #define KSH_VERSION (initvsn + /* "KSH_VERSION=@(#)" */ 16) /*