X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fw32sock.h;h=ef0b5937e1f8cdfff6f98f8528c9ec01d24a0c32;hb=7a719c1772d45a9990560820a78ae76534ae3497;hp=0b8334e4ec5f1f3b082028a858943a442c1edf09;hpb=d63fa9d4fe8791bca39b5108c9970e70016e7a21;p=gnulib.git diff --git a/lib/w32sock.h b/lib/w32sock.h index 0b8334e4e..ef0b5937e 100644 --- a/lib/w32sock.h +++ b/lib/w32sock.h @@ -1,6 +1,6 @@ -/* w32sock.h --- internal auxilliary functions for Windows socket functions +/* w32sock.h --- internal auxiliary functions for Windows socket functions - Copyright (C) 2008-2011 Free Software Foundation, Inc. + Copyright (C) 2008-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -29,7 +29,7 @@ #include "msvc-nothrow.h" #define FD_TO_SOCKET(fd) ((SOCKET) _get_osfhandle ((fd))) -#define SOCKET_TO_FD(fh) (_open_osfhandle ((long) (fh), O_RDWR | O_BINARY)) +#define SOCKET_TO_FD(fh) (_open_osfhandle ((intptr_t) (fh), O_RDWR | O_BINARY)) static inline void set_winsock_errno (void)