* lib/stat-w32.c: Always include <sys/types.h>. 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 26875e7..78c8257 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2017-06-25 Paul Eggert <egg...@cs.ucla.edu> + + stat: port to xlc 12.01 + * lib/stat-w32.c: Always include <sys/types.h>. Otherwise, xlc + 12.01 complains "Compilation unit is empty." + 2017-06-24 Paul Eggert <egg...@cs.ucla.edu> xalloc-oversized: port to icc diff --git a/lib/stat-w32.c b/lib/stat-w32.c index b4c762c..022d01c 100644 --- a/lib/stat-w32.c +++ b/lib/stat-w32.c @@ -18,13 +18,15 @@ #include <config.h> +/* Include this on all platforms, so that the compilation unit is nonempty. */ +#include <sys/types.h> + #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ /* Ensure that <windows.h> defines FILE_ID_INFO. */ #undef _WIN32_WINNT #define _WIN32_WINNT _WIN32_WINNT_WIN8 -#include <sys/types.h> #include <sys/stat.h> #include <errno.h> #include <limits.h> -- 2.9.4