ignore failure to define MAP_FILE
This commit is contained in:
4
Build.sh
4
Build.sh
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.301 2008/03/27 17:55:31 tg Exp $'
|
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.302 2008/03/27 17:59:27 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_NOPWNAM MKSH_NOVI
|
# CPPFLAGS recognised: MKSH_SMALL MKSH_ASSUME_UTF8 MKSH_NOPWNAM MKSH_NOVI
|
||||||
@ -914,7 +914,7 @@ ac_test flock_ex '' 'flock and mmap' <<-'EOF'
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
int main(void) { return (mmap(NULL, flock(0, LOCK_EX), PROT_READ,
|
int main(void) { return (mmap(NULL, flock(0, LOCK_EX), PROT_READ,
|
||||||
MAP_FILE | MAP_PRIVATE, 0, 0) == NULL ? 1 : 0); }
|
MAP_PRIVATE, 0, 0) == NULL ? 1 : 0); }
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
ac_test mkstemp <<-'EOF'
|
ac_test mkstemp <<-'EOF'
|
||||||
|
10
histrap.c
10
histrap.c
@ -3,7 +3,15 @@
|
|||||||
|
|
||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/histrap.c,v 1.58 2008/03/05 16:54:21 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/histrap.c,v 1.59 2008/03/27 17:59:28 tg Exp $");
|
||||||
|
|
||||||
|
/*-
|
||||||
|
* MirOS: This is the default mapping type, and need not be specified.
|
||||||
|
* IRIX doesn’t have this constant.
|
||||||
|
*/
|
||||||
|
#ifndef MAP_FILE
|
||||||
|
#define MAP_FILE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
Trap sigtraps[NSIG + 1];
|
Trap sigtraps[NSIG + 1];
|
||||||
static struct sigaction Sigact_ign;
|
static struct sigaction Sigact_ign;
|
||||||
|
Reference in New Issue
Block a user