summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2010-08-17 09:24:39 +0000
committerJunio C Hamano <gitster@pobox.com>2010-08-18 14:06:54 -0700
commita997bf423d4baac5b2286edccd1cef897108397f (patch)
treeddea78c3d0fa422aaac324598ef3b5fe75d154bb /compat
parentd18f76dccff1fc56221846926edb4542d88f60e0 (diff)
downloadgit-a997bf423d4baac5b2286edccd1cef897108397f.tar.gz
compat/regex: get the gawk regex engine to compile within git
We need to define -DGAWK -DNO_MBSUPPORT so that the gawk regex engine will compile, and include stdio.h and stddef.h in regex.h. Gawk itself includes these headers before it includes the regex.h header. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Acked-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
-rw-r--r--compat/regex/regex.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/compat/regex/regex.h b/compat/regex/regex.h
index de93327883..61c9683872 100644
--- a/compat/regex/regex.h
+++ b/compat/regex/regex.h
@@ -1,3 +1,6 @@
+#include <stdio.h>
+#include <stddef.h>
+
/* Definitions for data structures and routines for the regular
expression library.
Copyright (C) 1985,1989-93,1995-98,2000,2001,2002,2003,2005,2006,2008