check for getmode as well when checking for setmode;
disable this check on winapi systems since their setmode is something else
This commit is contained in:
parent
a799f50fea
commit
c20d203346
8
Build.sh
8
Build.sh
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $MirOS: src/bin/mksh/Build.sh,v 1.76 2006/11/12 12:56:09 tg Exp $
|
# $MirOS: src/bin/mksh/Build.sh,v 1.77 2006/11/12 13:08:30 tg Exp $
|
||||||
#-
|
#-
|
||||||
# Environment: CC, CFLAGS, CPPFLAGS, LDFLAGS, LIBS, NROFF
|
# Environment: CC, CFLAGS, CPPFLAGS, LDFLAGS, LIBS, NROFF
|
||||||
|
|
||||||
@ -232,8 +232,12 @@ ac_test langinfo_codeset setlocale_ctype 0 'nl_langinfo(CODESET)' <<'EOF'
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
ac_test setmode mksh_full 1 <<-'EOF'
|
ac_test setmode mksh_full 1 <<-'EOF'
|
||||||
|
#if defined(__MSVCRT__) || defined(__CYGWIN__)
|
||||||
|
#error Win32 setmode() is different from what we need
|
||||||
|
#else
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
int main(int ac, char *av[]) { setmode(av[0]); return (ac); }
|
int main(int ac, char *av[]) { return (setmode(getmode(av[0], ac))); }
|
||||||
|
#endif
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
ac_test setresugid <<-'EOF'
|
ac_test setresugid <<-'EOF'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user