From b497da1eb420735837dcf66d6567ad4cea10c302 Mon Sep 17 00:00:00 2001 From: tg Date: Sat, 14 Apr 2012 14:11:07 +0000 Subject: [PATCH] add 386BSD, thanks to the unbelievable RT --- Build.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Build.sh b/Build.sh index b74b2e6..0158afa 100644 --- a/Build.sh +++ b/Build.sh @@ -1,5 +1,5 @@ #!/bin/sh -srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.547 2012/04/14 14:07:45 tg Exp $' +srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.548 2012/04/14 14:11:07 tg Exp $' #- # Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # 2011, 2012 @@ -470,6 +470,15 @@ esac # Configuration depending on OS name case $TARGET_OS in +386BSD) + # required fixes for 386BSD-0.0new are: + # http://groups.google.com/group/comp.unix.bsd/browse_thread/thread/1c6397039f10e76b?hl=en + # http://groups.google.com/group/comp.unix.bsd/browse_thread/thread/cb899f7ccb81550b?hl=en + # from 386BSD-0.1 on, it works out of the box + : ${HAVE_CAN_OTWO=0} + add_cppflags -DMKSH_NO_SIGSETJMP + add_cppflags -DMKSH_TYPEDEF_SIG_ATOMIC_T=int + ;; AIX) add_cppflags -D_ALL_SOURCE : ${HAVE_SETLOCALE_CTYPE=0} @@ -1393,7 +1402,7 @@ else #define EXTERN #define MKSH_INCLUDES_ONLY #include "sh.h" - __RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.547 2012/04/14 14:07:45 tg Exp $"); + __RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.548 2012/04/14 14:11:07 tg Exp $"); int main(void) { printf("Hello, World!\n"); return (0); } EOF case $cm in