From 65a86d2f67c81c824de8febdd250ea0e42212eb7 Mon Sep 17 00:00:00 2001 From: tg Date: Thu, 18 Jan 2007 00:10:16 +0000 Subject: [PATCH] bring back sig_t as void pointer in the rare case we don't have sighandler_t or __sighandler_t either --- Build.sh | 4 +++- sh.h | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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 */