diff options
author | Andreas Gruenbacher <agruen@gnu.org> | 2015-02-01 21:40:11 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-02-02 11:50:42 +0000 |
commit | b650986cb3789b6c8d347c65879c821b5ec537fa (patch) | |
tree | 70c9882701faa5343946f8e42c8a0c92798e1653 /lib | |
parent | 9c1f45e0692b3e065060dc2c4a62be2bf7582208 (diff) | |
download | gnulib-b650986cb3789b6c8d347c65879c821b5ec537fa.tar.gz |
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 <sys/stat.h> for fstatat(),
and string.h for strlen().
Reported at https://savannah.gnu.org/bugs/index.php?44151
and by Jack Howarth.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/symlinkat.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <sys/stat.h> +#include <string.h> + /* Create a symlink, but reject trailing slash. */ int rpl_symlinkat (char const *contents, int fd, char const *name) |