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

Commit01ec41a

Browse files
committed
Fall back to unsigned int, not int, for socklen_t.
It's a coin toss which of these is a better default assumption.However, of the machines we have in the buildfarm, the only onesrelying on the fallback socklen_t definition are ancient HPUX,and on that platform unsigned int is the right choice. Minortweak toee3a1a5.Discussion:https://postgr.es/m/1440792.1636558888@sss.pgh.pa.us
1 parent0726c76 commit01ec41a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/include/port.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ typedef SOCKET pgsocket;
3737
#definePGINVALID_SOCKET INVALID_SOCKET
3838
#endif
3939

40+
/* if platform lacks socklen_t, we assume this will work */
4041
#ifndefHAVE_SOCKLEN_T
41-
typedefintsocklen_t;
42+
typedefunsignedintsocklen_t;
4243
#endif
4344

4445
/* non-blocking */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp