bring back sig_t as void pointer in the rare case we
don't have sighandler_t or __sighandler_t either
This commit is contained in:
parent
7056c561ec
commit
65a86d2f67
4
Build.sh
4
Build.sh
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/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
|
# Env: CC, CFLAGS, CPP, CPPFLAGS, LDFLAGS, LIBS, NOWARN, NROFF, TARGET_OS
|
||||||
# CPPFLAGS recognised: MKSH_SMALL MKSH_NOPWNAM
|
# CPPFLAGS recognised: MKSH_SMALL MKSH_NOPWNAM
|
||||||
@ -346,6 +346,8 @@ if test 1 = $HAVE_SIGHANDLER_T; then
|
|||||||
HAVE_SIG_T=1
|
HAVE_SIG_T=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
CPPFLAGS="$CPPFLAGS -DHAVE_SIG_T=$HAVE_SIG_T"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Environment: signals
|
# Environment: signals
|
||||||
#
|
#
|
||||||
|
6
sh.h
6
sh.h
@ -8,7 +8,7 @@
|
|||||||
/* $OpenBSD: c_test.h,v 1.4 2004/12/20 11:34:26 otto Exp $ */
|
/* $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 $ */
|
/* $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"
|
#define MKSH_VERSION "R29 2007/01/17"
|
||||||
|
|
||||||
#if HAVE_SYS_PARAM_H
|
#if HAVE_SYS_PARAM_H
|
||||||
@ -373,6 +373,10 @@ struct temp {
|
|||||||
#define shl_out (&shf_iob[2])
|
#define shl_out (&shf_iob[2])
|
||||||
EXTERN int shl_stdout_ok;
|
EXTERN int shl_stdout_ok;
|
||||||
|
|
||||||
|
#if !HAVE_SIG_T
|
||||||
|
typedef void (*sig_t)(int);
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* trap handlers
|
* trap handlers
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user