From: Bruno Haible Date: Sun, 4 Mar 2007 00:06:30 +0000 (+0000) Subject: Oops, really avoid an empty translation unit. X-Git-Tag: cvs-readonly~898 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=f787b006e3830a4ef42523b8b88a57b42f5913d9;p=gnulib.git Oops, really avoid an empty translation unit. --- diff --git a/lib/strerror.c b/lib/strerror.c index c8c757f8e..54b851bda 100644 --- a/lib/strerror.c +++ b/lib/strerror.c @@ -19,10 +19,10 @@ #include -#include - #if !HAVE_STRERROR +#include + /* Don't include , since it may or may not declare sys_errlist and its declarations may collide with ours. Just declare the stuff that we need directly. Standard hosted C89 @@ -48,4 +48,10 @@ strerror (int n) return sys_errlist[n]; } -#endif /* !HAVE_STRERROR */ +#else + +/* This declaration is solely to ensure that after preprocessing + this file is never empty. */ +typedef int dummy; + +#endif