diff --git a/Build.sh b/Build.sh index 157ace0..5e68179 100644 --- a/Build.sh +++ b/Build.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $MirOS: src/bin/mksh/Build.sh,v 1.136 2007/01/17 23:54:39 tg Exp $ +# $MirOS: src/bin/mksh/Build.sh,v 1.137 2007/01/18 00:10:16 tg Exp $ #- # Env: CC, CFLAGS, CPP, CPPFLAGS, LDFLAGS, LIBS, NOWARN, NROFF, TARGET_OS # CPPFLAGS recognised: MKSH_SMALL MKSH_NOPWNAM @@ -346,6 +346,8 @@ if test 1 = $HAVE_SIGHANDLER_T; then HAVE_SIG_T=1 fi +CPPFLAGS="$CPPFLAGS -DHAVE_SIG_T=$HAVE_SIG_T" + # # Environment: signals # diff --git a/sh.h b/sh.h index 2a2db78..33dc569 100644 --- a/sh.h +++ b/sh.h @@ -8,7 +8,7 @@ /* $OpenBSD: c_test.h,v 1.4 2004/12/20 11:34:26 otto Exp $ */ /* $OpenBSD: tty.h,v 1.5 2004/12/20 11:34:26 otto Exp $ */ -#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.105 2007/01/17 23:54:39 tg Exp $" +#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.106 2007/01/18 00:10:16 tg Exp $" #define MKSH_VERSION "R29 2007/01/17" #if HAVE_SYS_PARAM_H @@ -373,6 +373,10 @@ struct temp { #define shl_out (&shf_iob[2]) EXTERN int shl_stdout_ok; +#if !HAVE_SIG_T +typedef void (*sig_t)(int); +#endif + /* * trap handlers */