aboutsummaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2013-01-31 18:31:30 +0000
committerJunio C Hamano <gitster@pobox.com>2013-02-25 12:40:03 -0800
commit93e38ed0c5a632d7b785357a309ac83e4df066fa (patch)
tree59fc456fc239c0b19d1fd003b1d7ce24d0b79363 /compat
parent4ab7527458a908b51891cbaa6bc0da9b711ebd19 (diff)
downloadgit-93e38ed0c5a632d7b785357a309ac83e4df066fa.tar.gz
git-93e38ed0c5a632d7b785357a309ac83e4df066fa.tar.xz
msvc: Fix build by adding missing symbol defines
In particular, remote-testsvn.c fails to compile with two undeclared identifier errors relating to the 'UINT32_MAX' and 'STDIN_FILENO' symbols. In order to fix the compilation errors, we add appropriate definitions for the UINT32_MAX and STDIN_FILENO constants to an msvc compat header file. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Tested-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
-rw-r--r--compat/vcbuild/include/unistd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/compat/vcbuild/include/unistd.h b/compat/vcbuild/include/unistd.h
index b14fcf94d..c65c2cd56 100644
--- a/compat/vcbuild/include/unistd.h
+++ b/compat/vcbuild/include/unistd.h
@@ -49,6 +49,9 @@ typedef int64_t off64_t;
#define INTMAX_MAX _I64_MAX
#define UINTMAX_MAX _UI64_MAX
+#define UINT32_MAX 0xffffffff /* 4294967295U */
+
+#define STDIN_FILENO 0
#define STDOUT_FILENO 1
#define STDERR_FILENO 2