diff options
author | Jim Meyering <jim@meyering.net> | 1994-11-02 05:21:37 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-11-02 05:21:37 +0000 |
commit | c6411b91f5b781851ac761a506e885959a6a840b (patch) | |
tree | a4e7118b08500cc20cb033ea9e2375c0354783f1 | |
parent | 346a1b23518a7270ca90c9d5ec3f8b5e256796d2 (diff) | |
download | coreutils-c6411b91f5b781851ac761a506e885959a6a840b.tar.xz |
(cat): Conditionalize test for errno == ENOSYS. It's not
defined on some Next and Alliant systems. From Kaveh Ghazi.
-rw-r--r-- | src/cat.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -62,7 +62,7 @@ static char line_buf[13] = {' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '0', '\t', '\0'}; /* Position in `line_buf' where printing starts. This will not change - unless the number of lines are more than 999999. */ + unless the number of lines is larger than 999999. */ static char *line_num_print = line_buf + 5; /* Position of the first digit in `line_buf'. */ @@ -550,7 +550,10 @@ cat (inbuf, insize, outbuf, outsize, quote, Irix-5 returns ENOSYS on pipes. */ if (errno == EOPNOTSUPP || errno == ENOTTY || errno == EINVAL || errno == ENODEV - || errno == ENOSYS) +#ifdef ENOSYS + || errno == ENOSYS +#endif + ) use_fionread = 0; else { |