summaryrefslogtreecommitdiff
path: root/src/wc.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-02-28 12:50:35 +0000
committerJim Meyering <jim@meyering.net>1995-02-28 12:50:35 +0000
commit40f6e920679bdadd5f391d8043347489d89993d1 (patch)
treea7e513fc1cecc1a3a4ac468d687bce98aa419412 /src/wc.c
parentb53cae84920f6acb8f71eb1e65fbbfd06745adc7 (diff)
downloadcoreutils-40f6e920679bdadd5f391d8043347489d89993d1.tar.xz
(wc): oops. Add missing dcl of stats.
Diffstat (limited to 'src/wc.c')
-rw-r--r--src/wc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wc.c b/src/wc.c
index 53d83876d..ef76b7eb0 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -217,6 +217,7 @@ wc (fd, file)
if (print_chars && !print_words && !print_lines)
{
off_t current_pos, end_pos;
+ struct stat stats;
if (fstat (fd, &stats) == 0 && S_ISREG (stats.st_mode)
&& (current_pos = lseek (fd, (off_t) 0, SEEK_CUR)) != -1