From: Jim Meyering Date: Sun, 28 Apr 1996 21:34:00 +0000 (+0000) Subject: [HAVE_ST_BLOCKS || _POSIX_VERSION]: Add extern dcl X-Git-Tag: cvs-readonly~8574 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=cd192cd5f380907de3a96cb6c955701215ce8026;p=gnulib.git [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. --- 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