aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2017-06-27 23:37:47 +0200
committerRon Yorston <rmy@pobox.com>2017-08-31 09:14:17 +0100
commit97e7593785e4be972383d8018e33af7d3dd409b9 (patch)
treeb5353e4ceecb2afc6b8b7ecb699c6beafaca258c
parent762ca54bfb34e47908a626d2f15632efd57aebf9 (diff)
downloadbusybox-w32-97e7593785e4be972383d8018e33af7d3dd409b9.tar.gz
busybox-w32-97e7593785e4be972383d8018e33af7d3dd409b9.tar.bz2
busybox-w32-97e7593785e4be972383d8018e33af7d3dd409b9.zip
win32/poll: avoid assumption that pointers are equivalent to longs
This is a companion patch to 4319368c6 (Use gnulib poll, importing the version from git, 2012-03-30) (Git's implementation of IsConsoleHandle() was adjusted in the meantime). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Ron Yorston <rmy@pobox.com>
-rw-r--r--win32/poll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/poll.c b/win32/poll.c
index 403eaa7a3..935b92423 100644
--- a/win32/poll.c
+++ b/win32/poll.c
@@ -72,7 +72,7 @@
72 72
73#ifdef WIN32_NATIVE 73#ifdef WIN32_NATIVE
74 74
75#define IsConsoleHandle(h) (((long) (h) & 3) == 3) 75#define IsConsoleHandle(h) (((intptr_t) (h) & 3) == 3)
76 76
77static BOOL 77static BOOL
78IsSocketHandle (HANDLE h) 78IsSocketHandle (HANDLE h)