support BSD/OS 3.1 with gcc2, 10x replaced@tnf
except MAP_FAILED not being defined, no issues
This commit is contained in:
8
sh.h
8
sh.h
@@ -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.195 2008/03/05 18:49:15 tg Exp $"
|
||||
#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.196 2008/03/23 20:55:18 tg Exp $"
|
||||
#define MKSH_VERSION "R33 2008/03/05"
|
||||
|
||||
#if HAVE_SYS_PARAM_H
|
||||
@@ -178,8 +178,12 @@ typedef int bool;
|
||||
#define RLIMIT_VMEM RLIMIT_AS
|
||||
#endif
|
||||
|
||||
#if !defined(MAP_FAILED) && defined(__linux)
|
||||
#if !defined(MAP_FAILED)
|
||||
# if defined(__linux)
|
||||
#define MAP_FAILED ((void *)-1)
|
||||
# elif defined(__bsdi__)
|
||||
#define MAP_FAILED ((caddr_t)-1)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef NSIG
|
||||
|
Reference in New Issue
Block a user