summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-04-28 21:34:00 +0000
committerJim Meyering <jim@meyering.net>1996-04-28 21:34:00 +0000
commit347c2d6d3039e9a2df6ab033e1d268d8b096ba83 (patch)
treeebf3bbd74dbb362c2a53a365fc6eb034b1bb7a29
parent9af8f15624b2e8fe8555b5ef033b608287ec9aca (diff)
downloadcoreutils-347c2d6d3039e9a2df6ab033e1d268d8b096ba83.tar.xz
[HAVE_ST_BLOCKS || _POSIX_VERSION]: Add extern dcl
of unused variable so that after preprocessing, the file will never be empty. Otherwise, some compilers in ANSI mode (among them, the Dec Alpha OSF 2.0 C compiler) reject empty files. From Kaveh Ghazi.
-rw-r--r--lib/fileblocks.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/fileblocks.c b/lib/fileblocks.c
index e85bf17bc..31425c162 100644
--- a/lib/fileblocks.c
+++ b/lib/fileblocks.c
@@ -63,4 +63,8 @@ st_blocks (size)
return datablks + indrblks;
}
+#else
+/* This declaration is solely to ensure that after preprocessing
+ this file is never empty. */
+extern int textutils_fileblocks_unused;
#endif