]> Savannah Git Hosting - gnulib.git/commitdiff
stat: port to xlc 12.01
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 25 Jun 2017 07:06:15 +0000 (00:06 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 25 Jun 2017 07:06:36 +0000 (00:06 -0700)
* lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
12.01 complains "Compilation unit is empty."

ChangeLog
lib/stat-w32.c

index 26875e7e69ce9214ed4eca77a02772136c39ee84..78c8257ee455ac4f0e12bfb3a2a754fe317b8cdf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-06-25  Paul Eggert  <eggert@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  <eggert@cs.ucla.edu>
 
        xalloc-oversized: port to icc
index b4c762c3150b6bfa60b1d881be3d47165fdf6b00..022d01ca8f61664dd1caec9dbff77d18a5a0807c 100644 (file)
 
 #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>