From f787b006e3830a4ef42523b8b88a57b42f5913d9 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 4 Mar 2007 00:06:30 +0000 Subject: [PATCH] Oops, really avoid an empty translation unit. --- lib/strerror.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 -- 2.11.0