From: Junio C Hamano Date: Tue, 19 Mar 2013 19:20:40 +0000 (-0700) Subject: Merge branch 'rj/msvc-build' X-Git-Tag: v1.8.3-rc0~218 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/9b79956018fafb97da82839148d3ea2acd3e5959?ds=sidebyside;hp=-c Merge branch 'rj/msvc-build' * rj/msvc-build: msvc: avoid collisions between "tags" and "TAGS" msvc: test-svn-fe: Fix linker "unresolved external" error msvc: Fix build by adding missing symbol defines msvc: git-daemon: Fix linker "unresolved external" errors msvc: Fix compilation errors caused by poll.h emulation --- 9b79956018fafb97da82839148d3ea2acd3e5959 diff --combined config.mak.uname index e09af8fc13,bb8246b63e..9080054f76 --- a/config.mak.uname +++ b/config.mak.uname @@@ -321,12 -321,12 +321,11 @@@ ifeq ($(uname_S),Windows NO_UNSETENV = YesPlease NO_STRCASESTR = YesPlease NO_STRLCPY = YesPlease - NO_STRTOK_R = YesPlease NO_FNMATCH = YesPlease NO_MEMMEM = YesPlease # NEEDS_LIBICONV = YesPlease NO_ICONV = YesPlease NO_STRTOUMAX = YesPlease - NO_STRTOULL = YesPlease NO_MKDTEMP = YesPlease NO_MKSTEMPS = YesPlease SNPRINTF_RETURNS_BOGUS = YesPlease @@@ -343,6 -343,9 +342,9 @@@ NO_CURL = YesPlease NO_PYTHON = YesPlease BLK_SHA1 = YesPlease + ETAGS_TARGET = ETAGS + NO_INET_PTON = YesPlease + NO_INET_NTOP = YesPlease NO_POSIX_GOODIES = UnfortunatelyYes NATIVE_CRLF = YesPlease DEFAULT_HELP_FORMAT = html @@@ -475,6 -478,7 +477,6 @@@ ifneq (,$(findstring MINGW,$(uname_S)) NO_UNSETENV = YesPlease NO_STRCASESTR = YesPlease NO_STRLCPY = YesPlease - NO_STRTOK_R = YesPlease NO_FNMATCH = YesPlease NO_MEMMEM = YesPlease NEEDS_LIBICONV = YesPlease diff --combined git-compat-util.h index e715285e7c,490afb6af4..90e0372038 --- a/git-compat-util.h +++ b/git-compat-util.h @@@ -86,6 -86,9 +86,9 @@@ #define _SGI_SOURCE 1 #ifdef WIN32 /* Both MinGW and MSVC */ + # if defined (_MSC_VER) + # define _WIN32_WINNT 0x0502 + # endif #define WIN32_LEAN_AND_MEAN /* stops windows.h including winsock.h */ #include #include @@@ -213,17 -216,6 +216,17 @@@ extern char *gitbasename(char *) #include #endif +/* On most systems would have given us this, but + * not on some systems (e.g. z/OS). + */ +#ifndef NI_MAXHOST +#define NI_MAXHOST 1025 +#endif + +#ifndef NI_MAXSERV +#define NI_MAXSERV 32 +#endif + /* On most systems would have given us this, but * not on some systems (e.g. GNU/Hurd). */ @@@ -432,6 -424,11 +435,6 @@@ extern uintmax_t gitstrtoumax(const cha extern intmax_t gitstrtoimax(const char *, char **, int); #endif -#ifdef NO_STRTOK_R -#define strtok_r gitstrtok_r -extern char *gitstrtok_r(char *s, const char *delim, char **save_ptr); -#endif - #ifdef NO_HSTRERROR #define hstrerror githstrerror extern const char *githstrerror(int herror);