bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* [PATCH] Add missing header files
@ 2015-02-01 20:40 Andreas Gruenbacher
  2015-02-02 11:54 ` Pádraig Brady
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Gruenbacher @ 2015-02-01 20:40 UTC (permalink / raw
  To: bug-gnulib

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
-- 
2.1.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Add missing header files
  2015-02-01 20:40 [PATCH] Add missing header files Andreas Gruenbacher
@ 2015-02-02 11:54 ` Pádraig Brady
  0 siblings, 0 replies; 2+ messages in thread
From: Pádraig Brady @ 2015-02-02 11:54 UTC (permalink / raw
  To: Andreas Gruenbacher, bug-gnulib

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-02 11:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-01 20:40 [PATCH] Add missing header files Andreas Gruenbacher
2015-02-02 11:54 ` Pádraig Brady

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).