{"thread":{"id":"32798","subject":"[PATCH 3/5] msvc: Fix build by adding missing symbol defines","startedAt":"2013-01-31T18:31:30Z","lastAt":"2013-01-31T18:31:30Z","messageCount":1,"participants":["Ramsay Jones"],"isPatch":true,"patchVersion":1,"patchTotal":5},"messages":[{"id":"208383","messageId":"510AB882.5060105@ramsay1.demon.co.uk","threadId":"32798","inReplyTo":null,"subject":"[PATCH 3/5] msvc: Fix build by adding missing symbol defines","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsay1.demon.co.uk","sentAt":"2013-01-31T18:31:30Z","receivedAt":"2013-01-31T18:31:30Z","isPatch":true,"sender":{"key":"ramsay@ramsayjones.plus.com","avatar":"https://avatars.githubusercontent.com/u/33702710?v=4"},"body":"\nIn particular, remote-testsvn.c fails to compile with two\nundeclared identifier errors relating to the 'UINT32_MAX'\nand 'STDIN_FILENO' symbols.\n\nIn order to fix the compilation errors, we add appropriate\ndefinitions for the UINT32_MAX and STDIN_FILENO constants\nto an msvc compat header file.\n\nSigned-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>\n---\n compat/vcbuild/include/unistd.h | 3 +++\n 1 file changed, 3 insertions(+)\n\ndiff --git a/compat/vcbuild/include/unistd.h b/compat/vcbuild/include/unistd.h\nindex b14fcf9..c65c2cd 100644\n--- a/compat/vcbuild/include/unistd.h\n+++ b/compat/vcbuild/include/unistd.h\n@@ -49,6 +49,9 @@ typedef int64_t off64_t;\n #define INTMAX_MAX  _I64_MAX\n #define UINTMAX_MAX _UI64_MAX\n \n+#define UINT32_MAX 0xffffffff  /* 4294967295U */\n+\n+#define STDIN_FILENO  0\n #define STDOUT_FILENO 1\n #define STDERR_FILENO 2\n \n-- \n1.8.1\n"}]}