for R30, don't check for confstr() declaration any more
it was #if solaris'd in R28, and the system I have access on does declare it now (still Solaris 8) this can be put back if anyone complains, of course.
This commit is contained in:
14
Build.sh
14
Build.sh
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $MirOS: src/bin/mksh/Build.sh,v 1.185 2007/05/24 09:22:58 tg Exp $
|
# $MirOS: src/bin/mksh/Build.sh,v 1.186 2007/05/24 23:07:18 tg Exp $
|
||||||
#-
|
#-
|
||||||
# Environment used: CC CFLAGS CPP CPPFLAGS LDFLAGS LIBS NOWARN NROFF TARGET_OS
|
# Environment used: CC CFLAGS CPP CPPFLAGS LDFLAGS LIBS NOWARN NROFF TARGET_OS
|
||||||
# CPPFLAGS recognised: MKSH_SMALL MKSH_ASSUME_UTF8 MKSH_NEED_MKNOD MKSH_NOPWNAM
|
# CPPFLAGS recognised: MKSH_SMALL MKSH_ASSUME_UTF8 MKSH_NEED_MKNOD MKSH_NOPWNAM
|
||||||
@@ -636,18 +636,6 @@ ac_test '!' arc4random_push_decl arc4random_push 1 'if arc4random_push() does no
|
|||||||
void arc4random_push(long); /* this clashes if defined before */
|
void arc4random_push(long); /* this clashes if defined before */
|
||||||
int main(void) { arc4random_push(1); return (0); }
|
int main(void) { arc4random_push(1); return (0); }
|
||||||
EOF
|
EOF
|
||||||
ac_test '!' confstr_decl '' 'if confstr() does not need to be declared' <<-'EOF'
|
|
||||||
#define MKSH_INCLUDES_ONLY
|
|
||||||
#include "sh.h"
|
|
||||||
int confstr(long, void *, int); /* this clashes if defined before */
|
|
||||||
int main(int ac, char *av[]) {
|
|
||||||
#if !defined(_PATH_DEFPATH) && defined(_CS_PATH)
|
|
||||||
return (confstr(ac, *av, 0));
|
|
||||||
#else
|
|
||||||
return (ac + **av);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
ac_test sys_siglist_decl sys_siglist 1 'if sys_siglist[] does not need to be declared' <<-'EOF'
|
ac_test sys_siglist_decl sys_siglist 1 'if sys_siglist[] does not need to be declared' <<-'EOF'
|
||||||
#define MKSH_INCLUDES_ONLY
|
#define MKSH_INCLUDES_ONLY
|
||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
|
6
sh.h
6
sh.h
@@ -8,7 +8,7 @@
|
|||||||
/* $OpenBSD: c_test.h,v 1.4 2004/12/20 11:34:26 otto Exp $ */
|
/* $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 $ */
|
/* $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.136 2007/05/24 19:50:38 tg Exp $"
|
#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.137 2007/05/24 23:07:19 tg Exp $"
|
||||||
#define MKSH_VERSION "R29 2007/05/24"
|
#define MKSH_VERSION "R29 2007/05/24"
|
||||||
|
|
||||||
#if HAVE_SYS_PARAM_H
|
#if HAVE_SYS_PARAM_H
|
||||||
@@ -192,10 +192,6 @@ extern u_int32_t arc4random(void);
|
|||||||
extern void arc4random_push(int);
|
extern void arc4random_push(int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !HAVE_CONFSTR_DECL
|
|
||||||
size_t confstr(int, char *, size_t);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !HAVE_SETMODE
|
#if !HAVE_SETMODE
|
||||||
mode_t getmode(const void *, mode_t);
|
mode_t getmode(const void *, mode_t);
|
||||||
void *setmode(const char *);
|
void *setmode(const char *);
|
||||||
|
Reference in New Issue
Block a user