[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: [Patch] fix compile kdecore with msvc
From: Thiago Macieira <thiago () kde ! org>
Date: 2005-10-29 23:18:11
Message-ID: 200510292118.12399.thiago () kde ! org
[Download RAW message or body]
Ralf Habacker wrote:
>// replacement for unix close function
>inline void kde_close(int fd, char *a, int b)
>{
> u_long res;
> if (/* is socket file descriptor */
> /*ioctlsocket(fd,FIONREAD,&res) == 0*/ ){ closesocket(fd);
> }
> else {
> close(fd);
> }
>}
Well, maybe we don't have to detect it. The KSocketDevice class always
deals with sockets, so there's no problem using closesocket(), which is a
wrapper for close(2) on Unix.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
4. And æfter se scieppend ingelogode, he wrát "cenn", ac eala! se
rihtendgesamnung andswarode "cenn: ne wát hú cennan 'eall'. Ástynt."
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic