* instead of including <sys/cdefs.h> (not in Solaris), we hope <sys/types.h>

includes it for us
* autoconf-test for <sys/param.h> (not in SUSv3) existence
This commit is contained in:
tg
2006-11-09 00:11:39 +00:00
parent 9b0dbaddbf
commit 0307ecb492
3 changed files with 13 additions and 6 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $MirOS: src/bin/mksh/Build.sh,v 1.65 2006/11/09 00:08:25 tg Exp $
# $MirOS: src/bin/mksh/Build.sh,v 1.66 2006/11/09 00:11:38 tg Exp $
#-
# Environment: CC, CFLAGS, CPPFLAGS, LDFLAGS, LIBS, NROFF
@ -191,6 +191,11 @@ ac_test strlcpy <<-'EOF'
int main(int ac, char *av[]) { strlcpy(av[0], av[1], 1); return (ac); }
EOF
ac_test sys_param_h '' '<sys/param.h>' <<'EOF'
#include <sys/param.h>
int main(void) { return (0); }
EOF
$e ... done.
addsrcs HAVE_SETMODE setmode.c
addsrcs HAVE_STRLCAT strlfun.c