[vlc-devel] [PATCH 2/5] configure: define socklen_t to int on OS/2
Rémi Denis-Courmont
remi at remlab.net
Sun Nov 24 17:45:13 CET 2019
Le tiistaina 19. marraskuuta 2019, 14.39.45 EET Steve Lhomme a écrit :
> Also it may be better to use socklen_t where it's expected instead of
> using "unsigned int".
The question is what is the correct type to define socklen_t with, if it's not
defined.
On one hand, POSIX says it's an integer type with at least 32-bits, and
depending on version, unsigned, or unspecified signedness. On the other hand,
it must match whatever the pointer type is for the 6th argument of recvfrom(),
the 3rd argument of getsockname() and the 3rd argument of getpeername().
--
雷米‧德尼-库尔蒙
http://www.remlab.net/
More information about the vlc-devel
mailing list