file: update the file utility to version 5.04.
[msysgit.git] / src / file / patches / 0006-On-msysGit-include-the-whole-regex.c.patch
blob43a14b4b22a129f8b83c2f4cccd8efd99261cb7f
1 From 22b5a1937bd10a68388c60dbef9f0a28fca8486c Mon Sep 17 00:00:00 2001
2 From: Johannes Schindelin <johannes.schindelin@gmx.de>
3 Date: Mon, 7 Dec 2009 17:23:24 +0100
4 Subject: [PATCH 6/6] On msysGit, include the whole regex.c
6 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
7 ---
8 src/softmagic.c | 3 +++
9 1 files changed, 3 insertions(+), 0 deletions(-)
11 diff --git a/src/softmagic.c b/src/softmagic.c
12 index d8a5675..664af34 100644
13 --- a/src/softmagic.c
14 +++ b/src/softmagic.c
15 @@ -41,6 +41,9 @@ FILE_RCSID("@(#)$File: softmagic.c,v 1.138 2009/10/19 13:10:20 christos Exp $")
16 #include <stdlib.h>
17 #include <time.h>
19 +/* hack for msysGit */
20 +#include <regex.c>
23 private int match(struct magic_set *, struct magic *, uint32_t,
24 const unsigned char *, size_t, int);
25 --
26 1.7.3