mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-12-28 16:15:02 +01:00
zsh-workers/9889
This commit is contained in:
parent
057736f440
commit
8b04f597c4
4 changed files with 19 additions and 5 deletions
|
@ -1278,7 +1278,7 @@ untokenize(char *s)
|
|||
}
|
||||
}
|
||||
|
||||
/* Open a file for writing redicection */
|
||||
/* Open a file for writing redirection */
|
||||
|
||||
/**/
|
||||
static int
|
||||
|
@ -2311,8 +2311,8 @@ execcmd(Estate state, int input, int output, int how, int last1)
|
|||
if (xtrerr != stderr) {
|
||||
fil = fileno(xtrerr);
|
||||
fclose(xtrerr);
|
||||
zclose(fil);
|
||||
xtrerr = stderr;
|
||||
zclose(fil);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -66,7 +66,9 @@ char *mktemp _((char *));
|
|||
# ifndef HAVE_IOCTL_PROTO
|
||||
int ioctl _((int d, unsigned long request, void *argp));
|
||||
# endif
|
||||
# ifndef HAVE_MKNOD_PROTO
|
||||
int mknod _((const char *pathname, int mode, dev_t device));
|
||||
# endif
|
||||
int nice _((int increment));
|
||||
int select _((int nfds, fd_set * readfds, fd_set * writefds, fd_set * exceptfds, struct timeval *timeout));
|
||||
#endif
|
||||
|
|
|
@ -207,6 +207,9 @@
|
|||
/* Define to 1 if there is a prototype defined for ioctl() on your system */
|
||||
#undef HAVE_IOCTL_PROTO
|
||||
|
||||
/* Define to 1 if there is a prototype defined for mknod() on your system */
|
||||
#undef HAVE_MKNOD_PROTO
|
||||
|
||||
/* Define to 1 if select() is defined in <sys/socket.h>, ie BeOS R4.51*/
|
||||
#undef SELECT_IN_SYS_SOCKET_H
|
||||
|
||||
|
|
15
configure.in
15
configure.in
|
@ -1086,9 +1086,9 @@ if test $zsh_cv_header_unistd_h_sbrk_proto = yes; then
|
|||
AC_DEFINE(HAVE_SBRK_PROTO)
|
||||
fi
|
||||
|
||||
dnl ------------------------
|
||||
dnl ioctl prototypes for OSF
|
||||
dnl ------------------------
|
||||
dnl ----------------------------------
|
||||
dnl ioctl and mknod prototypes for OSF
|
||||
dnl ----------------------------------
|
||||
|
||||
if test "$ac_cv_prog_cc_stdc" != no; then
|
||||
AC_CACHE_CHECK(for ioctl prototype in <sys/ioctl.h>,
|
||||
|
@ -1100,6 +1100,15 @@ if test "$ac_cv_prog_cc_stdc" != no; then
|
|||
if test $zsh_cv_header_sys_ioctl_h_ioctl_proto = yes; then
|
||||
AC_DEFINE(HAVE_IOCTL_PROTO)
|
||||
fi
|
||||
AC_CACHE_CHECK(for mknod prototype in <sys/stat.h>,
|
||||
zsh_cv_header_sys_stat_h_mknod_proto,
|
||||
[AC_TRY_COMPILE([#include <sys/stat.h>
|
||||
int mknod(double x);], [int i;],
|
||||
zsh_cv_header_sys_stat_h_mknod_proto=no,
|
||||
zsh_cv_header_sys_stat_h_mknod_proto=yes)])
|
||||
if test $zsh_cv_header_sys_stat_h_mknod_proto = yes; then
|
||||
AC_DEFINE(HAVE_MKNOD_PROTO)
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl -------------------
|
||||
|
|
Loading…
Reference in a new issue