Skip to content

Commit 29cce95

Browse files
committed
Merge branch 'js/mingw-wants-vista-or-above'
The minimum version of Windows supported by Windows port fo Git is now set to Vista. * js/mingw-wants-vista-or-above: mingw: bump the minimum Windows version to Vista mingw: set _WIN32_WINNT explicitly for Git for Windows compat/poll: prepare for targeting Windows Vista
2 parents 488e2e8 + 2939a1f commit 29cce95

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

compat/poll/poll.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@
2929

3030
#include <sys/types.h>
3131

32-
/* Specification. */
33-
#include <poll.h>
34-
3532
#include <errno.h>
3633
#include <limits.h>
3734
#include <assert.h>
@@ -55,6 +52,9 @@
5552
# include <unistd.h>
5653
#endif
5754

55+
/* Specification. */
56+
#include "poll.h"
57+
5858
#ifdef HAVE_SYS_IOCTL_H
5959
# include <sys/ioctl.h>
6060
#endif

compat/poll/poll.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,21 @@
2121
#ifndef _GL_POLL_H
2222
#define _GL_POLL_H
2323

24+
#if defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x600
25+
/* Vista has its own, socket-only poll() */
26+
#undef POLLIN
27+
#undef POLLPRI
28+
#undef POLLOUT
29+
#undef POLLERR
30+
#undef POLLHUP
31+
#undef POLLNVAL
32+
#undef POLLRDNORM
33+
#undef POLLRDBAND
34+
#undef POLLWRNORM
35+
#undef POLLWRBAND
36+
#define pollfd compat_pollfd
37+
#endif
38+
2439
/* fake a poll(2) environment */
2540
#define POLLIN 0x0001 /* any readable data available */
2641
#define POLLPRI 0x0002 /* OOB/Urgent readable data */

config.mak.uname

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,6 @@ ifeq ($(uname_S),Windows)
381381
NO_PYTHON = YesPlease
382382
BLK_SHA1 = YesPlease
383383
ETAGS_TARGET = ETAGS
384-
NO_INET_PTON = YesPlease
385-
NO_INET_NTOP = YesPlease
386384
NO_POSIX_GOODIES = UnfortunatelyYes
387385
NATIVE_CRLF = YesPlease
388386
DEFAULT_HELP_FORMAT = html
@@ -529,8 +527,6 @@ ifneq (,$(findstring MINGW,$(uname_S)))
529527
NO_REGEX = YesPlease
530528
NO_PYTHON = YesPlease
531529
ETAGS_TARGET = ETAGS
532-
NO_INET_PTON = YesPlease
533-
NO_INET_NTOP = YesPlease
534530
NO_POSIX_GOODIES = UnfortunatelyYes
535531
DEFAULT_HELP_FORMAT = html
536532
COMPAT_CFLAGS += -DNOGDI -Icompat -Icompat/win32

git-compat-util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@
146146
#define _SGI_SOURCE 1
147147

148148
#if defined(WIN32) && !defined(__CYGWIN__) /* Both MinGW and MSVC */
149-
# if defined (_MSC_VER) && !defined(_WIN32_WINNT)
150-
# define _WIN32_WINNT 0x0502
149+
# if !defined(_WIN32_WINNT)
150+
# define _WIN32_WINNT 0x0600
151151
# endif
152152
#define WIN32_LEAN_AND_MEAN /* stops windows.h including winsock.h */
153153
#include <winsock2.h>

0 commit comments

Comments
 (0)