Minix 3 has no S_ISSOCK (probably not even UNIX® domain sockets)

and lacks other things (rlimit stuff), so it won't make it today
This commit is contained in:
tg 2007-03-04 05:14:10 +00:00
parent 17d0fd1e23
commit e0e432347b
2 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $MirOS: src/bin/mksh/Build.sh,v 1.162 2007/03/04 05:03:57 tg Exp $
# $MirOS: src/bin/mksh/Build.sh,v 1.163 2007/03/04 05:14:09 tg Exp $
#-
# Environment used: CC CFLAGS CPP CPPFLAGS LDFLAGS LIBS NOWARN NROFF TARGET_OS
# CPPFLAGS recognised: MKSH_SMALL MKSH_ASSUME_UTF8 MKSH_NEED_MKNOD MKSH_NOPWNAM
@ -215,8 +215,9 @@ Linux)
;;
Minix)
CPPFLAGS="$CPPFLAGS -D_MINIX -D_POSIX_SOURCE"
warn=" but might work with the GNU tools"
warn="$warn$nl but not with ACK - /usr/bin/cc - yet)"
warn=' and will currently not work'
# warn=" but might work with the GNU tools"
# warn="$warn$nl but not with ACK - /usr/bin/cc - yet)"
;;
MirBSD)
;;

5
sh.h
View File

@ -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.117 2007/03/04 05:04:54 tg Exp $"
#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.118 2007/03/04 05:14:10 tg Exp $"
#define MKSH_VERSION "R29 2007/03/04"
#if HAVE_SYS_PARAM_H
@ -159,6 +159,9 @@ typedef int bool;
#ifndef S_ISTXT
#define S_ISTXT 0001000
#endif
#ifndef S_ISSOCK
#define S_ISSOCK(m) ((m & 0170000) == 0140000)
#endif
#ifndef DEFFILEMODE
#define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
#endif