Patchwork [09/11] configure: Fix compile warning in utimensat/futimens test

login
register
mail settings
Submitter Peter Maydell
Date July 18, 2012, 2:10 p.m.
Message ID <1342620628-12751-10-git-send-email-peter.maydell@linaro.org>
Download mbox | patch
Permalink /patch/171687/
State New
Headers show

Comments

Peter Maydell - July 18, 2012, 2:10 p.m.
Fix compile warning in the utimensat/futimens test ("implicit
declaration of function 'utimensat'", ditto futimens) by
adding a missing include.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 configure |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Stefan Weil - July 18, 2012, 3:48 p.m.
Am 18.07.2012 16:10, schrieb Peter Maydell:
> Fix compile warning in the utimensat/futimens test ("implicit
> declaration of function 'utimensat'", ditto futimens) by
> adding a missing include.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
>   configure |    1 +
>   1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/configure b/configure
> index 9c2a84d..638e486 100755
> --- a/configure
> +++ b/configure
> @@ -2341,6 +2341,7 @@ cat > $TMPC << EOF
>   #define _ATFILE_SOURCE
>   #include <stddef.h>
>   #include <fcntl.h>
> +#include <sys/stat.h>
>   
>   int main(void)
>   {

Reviewed-by: Stefan Weil <sw@weilnetz.de>

Patch

diff --git a/configure b/configure
index 9c2a84d..638e486 100755
--- a/configure
+++ b/configure
@@ -2341,6 +2341,7 @@  cat > $TMPC << EOF
 #define _ATFILE_SOURCE
 #include <stddef.h>
 #include <fcntl.h>
+#include <sys/stat.h>
 
 int main(void)
 {