diff -urN -x '*.sub' -x '*.guess' tcsh-6.18.01/config/haiku tcsh-6.18.01-ok/config/haiku --- tcsh-6.18.01/config/haiku 1970-01-01 09:00:00.000000000 +0900 +++ tcsh-6.18.01-ok/config/haiku 2013-06-26 00:03:35.474218496 +0900 @@ -0,0 +1,83 @@ +/* + * config.h -- configure various defines for tcsh + * + * All source files should #include this FIRST. + * + * Edit this to match your system type. + */ + +#ifndef _h_config +#define _h_config +/****************** System dependant compilation flags ****************/ +/* + * POSIX This system supports IEEE Std 1003.1-1988 (POSIX). + */ +#define POSIX + +/* + * POSIXJOBS This system supports the optional IEEE Std 1003.1-1988 (POSIX) + * job control facilities. + */ +#define POSIXJOBS + +/* + * VFORK This machine has a vfork(). + * It used to be that for job control to work, this define + * was mandatory. This is not the case any more. + * If you think you still need it, but you don't have vfork, + * define this anyway and then do #define vfork fork. + * I do this anyway on a Sun because of yellow pages brain damage, + * [should not be needed under 4.1] + * and on the iris4d cause SGI's fork is sufficiently "virtual" + * that vfork isn't necessary. (Besides, SGI's vfork is weird). + * Note that some machines eg. rs6000 have a vfork, but not + * with the berkeley semantics, so we cannot use it there either. + */ +#define VFORK + +/* + * BSDJOBS You have BSD-style job control (both process groups and + * a tty that deals correctly + */ +#define BSDJOBS + +/* + * BSDTIMES You have BSD-style process time stuff (like rusage) + * This may or may not be true. For example, Apple Unix + * (OREO) has BSDJOBS but not BSDTIMES. + */ +#undef BSDTIMES + +/* + * BSDLIMIT You have BSD-style resource limit stuff (getrlimit/setrlimit) + */ +#define BSDLIMIT + +/* + * TERMIO You have struct termio instead of struct sgttyb. + * This is usually the case for SYSV systems, where + * BSD uses sgttyb. POSIX systems should define this + * anyway, even though they use struct termios. + */ +#define TERMIO + +/* + * SYSVREL Your machine is SYSV based (HPUX, A/UX) + * NOTE: don't do this if you are on a Pyramid -- tcsh is + * built in a BSD universe. + * Set SYSVREL to 1, 2, 3, or 4, depending the version of System V + * you are running. Or set it to 0 if you are not SYSV based + */ +#define SYSVREL 0 + +/* + * YPBUGS Work around Sun YP bugs that cause expansion of ~username + * to send command output to /dev/null + */ +#undef YPBUGS + +/****************** local defines *********************/ + +#define HAIKU + +#endif /* _h_config */ diff -urN -x '*.sub' -x '*.guess' tcsh-6.18.01/config_f.h tcsh-6.18.01-ok/config_f.h --- tcsh-6.18.01/config_f.h 2011-02-06 05:34:55.009961472 +0900 +++ tcsh-6.18.01-ok/config_f.h 2013-06-26 05:49:55.449052672 +0900 @@ -135,7 +135,7 @@ * This can be much slower and no memory statistics will be * provided. */ -#if defined(__MACHTEN__) || defined(PURIFY) || defined(MALLOC_TRACE) || defined(_OSD_POSIX) || defined(__MVS__) || defined (__CYGWIN__) || defined(__GLIBC__) +#if defined(__MACHTEN__) || defined(PURIFY) || defined(MALLOC_TRACE) || defined(_OSD_POSIX) || defined(__MVS__) || defined (__CYGWIN__) || defined(__GLIBC__) || defined(__HAIKU__) # define SYSMALLOC #else # undef SYSMALLOC @@ -166,7 +166,7 @@ * COLORCAT Do you want to colorful message ? * */ -#undef COLORCAT +#define COLORCAT /* * FILEC support for old style file completion diff -urN -x '*.sub' -x '*.guess' tcsh-6.18.01/configure tcsh-6.18.01-ok/configure --- tcsh-6.18.01/configure 2012-02-14 01:34:09.010485760 +0900 +++ tcsh-6.18.01-ok/configure 2013-06-26 07:07:47.492306432 +0900 @@ -2941,6 +2941,11 @@ tcsh_config_file=qnx6 ;; + ## HAIKU + *-*-haiku*) + tcsh_config_file=haiku + ;; + * ) as_fn_error $? "Tcsh can't guess the configuration file name for \`${host}' systems. diff -urN -x '*.sub' -x '*.guess' tcsh-6.18.01/configure.in tcsh-6.18.01-ok/configure.in --- tcsh-6.18.01/configure.in 2012-02-14 01:33:50.010485760 +0900 +++ tcsh-6.18.01-ok/configure.in 2013-06-26 07:06:25.773324800 +0900 @@ -259,6 +259,11 @@ tcsh_config_file=qnx6 ;; + ## HAIKU + *-*-haiku*) + tcsh_config_file=haiku + ;; + * ) changequote([, ])dnl AC_MSG_ERROR([Tcsh can't guess the configuration file name diff -urN -x '*.sub' -x '*.guess' tcsh-6.18.01/host.defs tcsh-6.18.01-ok/host.defs --- tcsh-6.18.01/host.defs 2012-01-12 05:20:15.012845056 +0900 +++ tcsh-6.18.01-ok/host.defs 2013-06-26 00:39:35.687865856 +0900 @@ -1226,7 +1226,12 @@ enddef : +newdef : defined(HAIKU) +ostype : defined(HAIKU) : "haiku" +hosttype: : "haiku" +enddef : newcode : + #ifndef _hosttype_ hosttype = "unknown"; #endif diff -urN -x '*.sub' -x '*.guess' tcsh-6.18.01/Ported tcsh-6.18.01-ok/Ported --- tcsh-6.18.01/Ported 2010-01-29 04:01:05.008650752 +0900 +++ tcsh-6.18.01-ok/Ported 2013-06-26 00:18:28.947388416 +0900 @@ -6,6 +6,17 @@ christos +VENDOR : Haiku +MODELS : any +COMPILER: cc, gcc +CFLAGS : normal +LIBES : -ltermcap +OS : haiku +CONFIG : haiku* +ENVIRON : n/a +NOTES : test +VERSION : 6.18.1 + VENDOR : Sun MODELS : sun3, sun4, sun386i diff -urN -x '*.sub' -x '*.guess' tcsh-6.18.01/sh.proc.c tcsh-6.18.01-ok/sh.proc.c --- tcsh-6.18.01/sh.proc.c 2012-01-26 00:34:41.016777216 +0900 +++ tcsh-6.18.01-ok/sh.proc.c 2013-06-26 00:01:12.212860928 +0900 @@ -190,7 +190,7 @@ (setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG), &ru); # else /* both a wait3 and rusage */ -# if !defined(BSDWAIT) || defined(NeXT) || defined(MACH) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) || (defined(IRIS4D) && SYSVREL <= 3) || defined(__lucid) || defined(__osf__) +# if !defined(BSDWAIT) || defined(NeXT) || defined(MACH) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) || (defined(IRIS4D) && SYSVREL <= 3) || defined(__lucid) || defined(__osf__) || defined(__HAIKU__) pid = wait3(&w, (setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG), &ru); # else /* BSDWAIT */ diff -urN -x '*.sub' -x '*.guess' tcsh-6.18.01/tc.sig.h tcsh-6.18.01-ok/tc.sig.h --- tcsh-6.18.01/tc.sig.h 2010-11-30 00:28:58.019660800 +0900 +++ tcsh-6.18.01-ok/tc.sig.h 2013-06-24 07:59:30.000000000 +0900 @@ -34,7 +34,7 @@ #ifndef _h_tc_sig #define _h_tc_sig -#if (SYSVREL > 0) || defined(BSD4_4) || defined(_MINIX) || defined(DGUX) || defined(WINNT_NATIVE) || defined(__QNXNTO__) +#if (SYSVREL > 0) || defined(BSD4_4) || defined(_MINIX) || defined(DGUX) || defined(WINNT_NATIVE) || defined(__QNXNTO__) || defined(__HAIKU__) # include # ifndef SIGCHLD # define SIGCHLD SIGCLD