From: Paul Eggert Date: Sun, 25 Jun 2017 07:06:15 +0000 (-0700) Subject: stat: port to xlc 12.01 X-Git-Tag: v1.0~6090 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=736844e30bb369d203d45503a7cab9f560113cab;p=gnulib.git stat: port to xlc 12.01 * lib/stat-w32.c: Always include . Otherwise, xlc 12.01 complains "Compilation unit is empty." --- diff --git a/ChangeLog b/ChangeLog index 26875e7e69..78c8257ee4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2017-06-25 Paul Eggert + + stat: port to xlc 12.01 + * lib/stat-w32.c: Always include . Otherwise, xlc + 12.01 complains "Compilation unit is empty." + 2017-06-24 Paul Eggert xalloc-oversized: port to icc diff --git a/lib/stat-w32.c b/lib/stat-w32.c index b4c762c315..022d01ca8f 100644 --- a/lib/stat-w32.c +++ b/lib/stat-w32.c @@ -18,13 +18,15 @@ #include +/* Include this on all platforms, so that the compilation unit is nonempty. */ +#include + #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ /* Ensure that defines FILE_ID_INFO. */ #undef _WIN32_WINNT #define _WIN32_WINNT _WIN32_WINNT_WIN8 -#include #include #include #include