From 736844e30bb369d203d45503a7cab9f560113cab Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 25 Jun 2017 00:06:15 -0700 Subject: [PATCH] stat: port to xlc 12.01 * lib/stat-w32.c: Always include . Otherwise, xlc 12.01 complains "Compilation unit is empty." --- ChangeLog | 6 ++++++ lib/stat-w32.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) 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 -- 2.39.5