Add a script to install the file(1) tool
[msysgit/kusma.git] / src / file / patches / 0006-On-msysGit-include-the-whole-regex.c.patch
blob09b5c422e7ea5f1c5359f97582dc3596673f75da
1 From 1b971dcbe6e5981c64f458f7f3bbc7eb7839057c 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 88f5214..294ef70 100644
13 --- a/src/softmagic.c
14 +++ b/src/softmagic.c
15 @@ -41,6 +41,9 @@ FILE_RCSID("@(#)$File: softmagic.c,v 1.135 2009/03/27 22:42:49 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.6.5.1.1371.g1abf3