diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2017-05-02 15:42:30 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2017-05-02 15:42:30 (GMT) |
commit | a90d8737b83a4a5bb2bf91a9bdf48a3dad4b51fa (patch) | |
tree | 95997351b47a6229c51c25b509645c778906451e /tcliis | |
parent | 35d249bee612825c397fd921644c8e4d6a1c10a8 (diff) | |
download | blt-a90d8737b83a4a5bb2bf91a9bdf48a3dad4b51fa.zip blt-a90d8737b83a4a5bb2bf91a9bdf48a3dad4b51fa.tar.gz blt-a90d8737b83a4a5bb2bf91a9bdf48a3dad4b51fa.tar.bz2 |
fix win64 issue
Diffstat (limited to 'tcliis')
-rw-r--r-- | tcliis/xim.C | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tcliis/xim.C b/tcliis/xim.C index ecbeeed..8fcc2db 100644 --- a/tcliis/xim.C +++ b/tcliis/xim.C @@ -25,7 +25,11 @@ extern "C" { void iisIO(ClientData data, int mask) { +#ifdef _WIN64 + int fd = (long long)data; +#else int fd = (long)data; +#endif if (IISDebug) cerr << "iisIO() " << fd << ' ' << mask << endl; @@ -81,7 +85,11 @@ void setupProc(void* fd, int flags) void checkProc(void* fdd, int flags) { +#ifdef __WIN32 + int fd = (long long)fdd; +#else int fd = (int)fdd; +#endif fd_set readfds; struct timeval tv = {0,0}; |