diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-02-13 20:30:03 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-02-13 20:30:03 +0200 |
commit | 32086b1f52a9978db1e8168b56a312e76afcf5ab (patch) | |
tree | de490c1c7d47bcbc6428d622957240679483d6b6 /io.c | |
parent | 6bfbae33e99c401f89a4d650ea7958bbdebd362e (diff) | |
download | egawk-32086b1f52a9978db1e8168b56a312e76afcf5ab.tar.gz egawk-32086b1f52a9978db1e8168b56a312e76afcf5ab.tar.bz2 egawk-32086b1f52a9978db1e8168b56a312e76afcf5ab.zip |
PC fixes for portability and dependencies.
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -781,7 +781,7 @@ redirect(NODE *redir_exp, int redirtype, int *errflg) if (rp->fp == NULL) close(fd); } - if (rp->fp != NULL && isatty(fd)) + if (rp->fp != NULL && ISATTY(fd)) rp->flag |= RED_NOBUF; /* Move rp to the head of the list. */ @@ -2561,7 +2561,7 @@ iop_alloc(int fd, const char *name, IOBUF *iop, int do_openhooks) return NULL; } - if (isatty(iop->fd)) + if (ISATTY(iop->fd)) iop->flag |= IOP_IS_TTY; iop->readsize = iop->size = optimal_bufsize(iop->fd, & sbuf); iop->sbuf = sbuf; |