]> Savannah Git Hosting - gnulib.git/commitdiff
symlinkat: include all required header files
authorAndreas Gruenbacher <agruen@gnu.org>
Sun, 1 Feb 2015 20:40:11 +0000 (21:40 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 2 Feb 2015 11:50:42 +0000 (11:50 +0000)
Following on from commit 032bd151, include header files required
on OS X 10.10 (Yosemite) at least.

* lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
and string.h for strlen().
Reported at https://savannah.gnu.org/bugs/index.php?44151
and by Jack Howarth.

ChangeLog
lib/symlinkat.c

index 69e3425798067793a493e8277794f1dd301579d6..7fdb00a6f4acf7489647889978f343ee2c55f37c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
+
+       symlinkat: include all required header files
+       * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
+       and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
+       Reported at https://savannah.gnu.org/bugs/index.php?44151
+       and by Jack Howarth.
+
 2015-01-29  Pádraig Brady  <P@draigBrady.com>
 
        localename: support Solaris 12 and illumos
index ce10d94a47b5105ad51529d23e0f22a8814db225..84d55847696fe59dcb59a13b9dd7c7ac4e407775 100644 (file)
@@ -24,6 +24,9 @@
 #if HAVE_SYMLINKAT
 # undef symlinkat
 
+#include <sys/stat.h>
+#include <string.h>
+
 /* Create a symlink, but reject trailing slash.  */
 int
 rpl_symlinkat (char const *contents, int fd, char const *name)