From: Andreas Gruenbacher Date: Sun, 1 Feb 2015 20:40:11 +0000 (+0100) Subject: symlinkat: include all required header files X-Git-Tag: v1.0~7172 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=b650986cb3789b6c8d347c65879c821b5ec537fa;p=gnulib.git symlinkat: include all required header files Following on from commit 032bd151, include header files required on OS X 10.10 (Yosemite) at least. * lib/symlinkat.c (HAVE_SYMLINK_AT): Add for fstatat(), and string.h for strlen(). Reported at https://savannah.gnu.org/bugs/index.php?44151 and by Jack Howarth. --- diff --git a/ChangeLog b/ChangeLog index 69e3425798..7fdb00a6f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2015-02-02 Andreas Gruenbacher + + symlinkat: include all required header files + * lib/symlinkat.c (HAVE_SYMLINK_AT): Add 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 localename: support Solaris 12 and illumos diff --git a/lib/symlinkat.c b/lib/symlinkat.c index ce10d94a47..84d5584769 100644 --- a/lib/symlinkat.c +++ b/lib/symlinkat.c @@ -24,6 +24,9 @@ #if HAVE_SYMLINKAT # undef symlinkat +#include +#include + /* Create a symlink, but reject trailing slash. */ int rpl_symlinkat (char const *contents, int fd, char const *name)