Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2737974

Browse files
committed
Cleanup of fe-connect ifdef platform problem added with beos.
1 parent734b1f7 commit2737974

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎src/interfaces/libpq/fe-connect.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.135 2000/10/03 03:11:25 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.136 2000/10/03 03:39:46 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -620,14 +620,13 @@ static int
620620
connectMakeNonblocking(PGconn*conn)
621621
{
622622
#ifdefWIN32
623-
if (fcntl(conn->sock,F_SETFL,O_NONBLOCK)<0)
623+
inton=1;
624+
if (ioctlsocket(conn->sock,FIONBIO,&on)!=0)
624625
#elif defined(__BEOS__)
625626
inton=1;
626627
if (ioctl(conn->sock,FIONBIO,&on)!=0)
627628
#else
628-
inton=1;
629-
630-
if (ioctlsocket(conn->sock,FIONBIO,&on)!=0)
629+
if (fcntl(conn->sock,F_SETFL,O_NONBLOCK)<0)
631630
#endif
632631
{
633632
printfPQExpBuffer(&conn->errorMessage,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp