From fa7407a37cfae7d690fc83ffa80cb1287649e8e1 Mon Sep 17 00:00:00 2001 From: tg Date: Sun, 12 Nov 2006 13:49:22 +0000 Subject: [PATCH] __CRAZY=Yes clean autoconf functions --- Build.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Build.sh b/Build.sh index be20e45..7bf0f5f 100644 --- a/Build.sh +++ b/Build.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $MirOS: src/bin/mksh/Build.sh,v 1.81 2006/11/12 13:38:40 tg Exp $ +# $MirOS: src/bin/mksh/Build.sh,v 1.82 2006/11/12 13:49:22 tg Exp $ #- # Environment: CC, CFLAGS, CPPFLAGS, LDFLAGS, LIBS, NROFF @@ -228,12 +228,14 @@ EOF ac_test setlocale_ctype '' 'setlocale(LC_CTYPE, "")' <<'EOF' #include - int main(void) { return ((int)setlocale(LC_CTYPE, "")); } + #include + int main(void) { return ((ptrdiff_t)(void *)setlocale(LC_CTYPE, "")); } EOF ac_test langinfo_codeset setlocale_ctype 0 'nl_langinfo(CODESET)' <<'EOF' #include - int main(void) { return ((int)nl_langinfo(CODESET)); } + #include + int main(void) { return ((ptrdiff_t)(void *)nl_langinfo(CODESET)); } EOF ac_test setmode mksh_full 1 <<-'EOF' @@ -259,8 +261,11 @@ ac_test setgroups setresugid 0 <<-'EOF' EOF ac_test strcasestr <<-'EOF' + #include #include - int main(int ac, char *av[]) { return ((int)strcasestr(*av, av[ac])); } + int main(int ac, char *av[]) { + return ((ptrdiff_t)(void *)strcasestr(*av, av[ac])); + } EOF ac_test strlcpy <<-'EOF'