file: update the file utility to version 5.04.
[msysgit.git] / src / file / patches / 0001-Do-not-include-headers-on-Windows-that-do-not-exist-.patch
blobca60d2ca878e93359095f607fec938a9ae50274f
1 From 2895d372a4660422ca274ae9f0268b6a46ab8f74 Mon Sep 17 00:00:00 2001
2 From: Johannes Schindelin <johannes.schindelin@gmx.de>
3 Date: Mon, 7 Dec 2009 17:20:14 +0100
4 Subject: [PATCH 1/6] Do not include headers on Windows that do not exist there
6 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
7 ---
8 configure.ac | 1 +
9 src/compress.c | 2 ++
10 2 files changed, 3 insertions(+), 0 deletions(-)
12 diff --git a/configure.ac b/configure.ac
13 index f13b364..53942b8 100644
14 --- a/configure.ac
15 +++ b/configure.ac
16 @@ -69,6 +69,7 @@ AC_CHECK_HEADERS(stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h)
17 AC_CHECK_HEADERS(utime.h wchar.h wctype.h limits.h)
18 AC_CHECK_HEADERS(getopt.h err.h)
19 AC_CHECK_HEADERS(sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h)
20 +AC_CHECK_HEADERS(sys/ioctl.h)
21 AC_CHECK_HEADERS(zlib.h)
23 dnl Checks for typedefs, structures, and compiler characteristics.
24 diff --git a/src/compress.c b/src/compress.c
25 index f04ab27..10b2158 100644
26 --- a/src/compress.c
27 +++ b/src/compress.c
28 @@ -45,7 +45,9 @@ FILE_RCSID("@(#)$File: compress.c,v 1.64 2009/05/08 17:41:58 christos Exp $")
29 #endif
30 #include <string.h>
31 #include <errno.h>
32 +#ifdef HAVE_SYS_IOCTL_H
33 #include <sys/ioctl.h>
34 +#endif
35 #ifdef HAVE_SYS_WAIT_H
36 #include <sys/wait.h>
37 #endif
38 --
39 1.7.3