initial support for PW32, not quite working yet (same issues as Minix 3 and Plan 9, I think)
This commit is contained in:
parent
e37577de42
commit
b20e5a90ce
21
Build.sh
21
Build.sh
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $MirOS: src/bin/mksh/Build.sh,v 1.243 2007/07/22 13:47:10 tg Exp $
|
# $MirOS: src/bin/mksh/Build.sh,v 1.244 2007/07/24 21:47:13 tg Exp $
|
||||||
#-
|
#-
|
||||||
# Environment used: CC CFLAGS CPPFLAGS LDFLAGS LIBS NOWARN NROFF TARGET_OS
|
# Environment used: CC CFLAGS CPPFLAGS LDFLAGS LIBS NOWARN NROFF TARGET_OS
|
||||||
# CPPFLAGS recognised: MKSH_SMALL MKSH_ASSUME_UTF8 MKSH_NEED_MKNOD MKSH_NOPWNAM
|
# CPPFLAGS recognised: MKSH_SMALL MKSH_ASSUME_UTF8 MKSH_NEED_MKNOD MKSH_NOPWNAM
|
||||||
@ -293,6 +293,25 @@ NetBSD)
|
|||||||
;;
|
;;
|
||||||
OpenBSD)
|
OpenBSD)
|
||||||
;;
|
;;
|
||||||
|
PW32*)
|
||||||
|
cat >stdint.h <<-'EOF'
|
||||||
|
typedef signed char int8_t;
|
||||||
|
typedef signed short int16_t;
|
||||||
|
typedef signed int int32_t;
|
||||||
|
typedef signed long long int64_t;
|
||||||
|
typedef unsigned char uint8_t;
|
||||||
|
typedef unsigned short uint16_t;
|
||||||
|
typedef unsigned int uint32_t;
|
||||||
|
typedef unsigned long long uint64_t;
|
||||||
|
typedef unsigned char u_char;
|
||||||
|
typedef unsigned int u_int;
|
||||||
|
typedef unsigned long u_long;
|
||||||
|
EOF
|
||||||
|
HAVE_SIG_T=0
|
||||||
|
CPPFLAGS="$CPPFLAGS -Dsig_t=nosig_t"
|
||||||
|
warn=' and will currently not work'
|
||||||
|
# missing: killpg() getrlimit()
|
||||||
|
;;
|
||||||
SunOS)
|
SunOS)
|
||||||
CPPFLAGS="$CPPFLAGS -D_BSD_SOURCE -D__EXTENSIONS__"
|
CPPFLAGS="$CPPFLAGS -D_BSD_SOURCE -D__EXTENSIONS__"
|
||||||
;;
|
;;
|
||||||
|
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.163 2007/07/24 11:22:04 tg Exp $"
|
#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.164 2007/07/24 21:47:14 tg Exp $"
|
||||||
#define MKSH_VERSION "R30 2007/07/24"
|
#define MKSH_VERSION "R30 2007/07/24"
|
||||||
|
|
||||||
#if HAVE_SYS_PARAM_H
|
#if HAVE_SYS_PARAM_H
|
||||||
@ -107,6 +107,7 @@ typedef long rlim_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !HAVE_SIG_T
|
#if !HAVE_SIG_T
|
||||||
|
#undef sig_t
|
||||||
typedef void (*sig_t)(int);
|
typedef void (*sig_t)(int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -119,6 +120,9 @@ typedef int bool;
|
|||||||
|
|
||||||
/* extra macros */
|
/* extra macros */
|
||||||
|
|
||||||
|
#ifndef timerclear
|
||||||
|
#define timerclear(tvp) do { (tvp)->tv_sec = (tvp)->tv_usec = 0; } while (0)
|
||||||
|
#endif
|
||||||
#ifndef timeradd
|
#ifndef timeradd
|
||||||
#define timeradd(tvp, uvp, vvp) \
|
#define timeradd(tvp, uvp, vvp) \
|
||||||
do { \
|
do { \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user