]> Savannah Git Hosting - gnulib.git/commitdiff
stat: fix compilation failure on macOS Sierra
authorBenno Schulenberg <bensberg@telfort.nl>
Tue, 28 Nov 2017 19:42:17 +0000 (20:42 +0100)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 28 Nov 2017 22:20:28 +0000 (14:20 -0800)
Reported by Marius Schamschula <mschamschula@gmail.com> in
https://savannah.gnu.org/bugs/?52546
* lib/stat.c: Add missing include of stat-time.h.

ChangeLog
lib/stat.c

index 9f458045c8486c1bab4bece938c61ffc49addb38..581d4ce56ef5c9711cc9d0a6730eb78d8bc17b24 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
+
+       stat: fix compilation failure on macOS Sierra
+       Reported by Marius Schamschula <mschamschula@gmail.com> in:
+       https://savannah.gnu.org/bugs/?52546
+       * lib/stat.c: Add missing include of stat-time.h.
+
 2017-11-28  Jim Meyering  <meyering@fb.com>
 
        test-faccessat.c: correct BASE definition to avoid parallel test failure
index 30ba67efc0a8c559735d766a3c5390595776c110..f52ae922231326f236edbaf1618011bf2b99b039 100644 (file)
@@ -47,6 +47,8 @@ orig_stat (const char *filename, struct stat *buf)
    above.  */
 #include "sys/stat.h"
 
+#include "stat-time.h"
+
 #include <errno.h>
 #include <limits.h>
 #include <stdbool.h>