[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add missing header files
From: |
Pádraig Brady |
Subject: |
Re: [PATCH] Add missing header files |
Date: |
Mon, 02 Feb 2015 11:54:07 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
On 01/02/15 20:40, Andreas Gruenbacher wrote:
> Reported at https://savannah.gnu.org/bugs/index.php?44151:
> * lib/symlinkat.c: Add <sys/stat.h> for fstatat() and string.h for strlen().
> ---
> lib/symlinkat.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/lib/symlinkat.c b/lib/symlinkat.c
> index ce10d94..ec85114 100644
> --- a/lib/symlinkat.c
> +++ b/lib/symlinkat.c
> @@ -18,8 +18,10 @@
>
> #include <config.h>
>
> +#include <sys/stat.h>
> #include <unistd.h>
> #include <errno.h>
> +#include <string.h>
>
> #if HAVE_SYMLINKAT
> # undef symlinkat
>
I moved the includes within the HAVE_SYMLINKAT section, and pushed.
http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=b650986cb
thanks,
Pádraig.