|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-1733138 ] socket.c assumes xopen getsockopt/getsockname
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 07 Jun 2007 16:32:58 -0700
Bugs item #1733138, was opened at 2007-06-07 16:32
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
HPUX doesn't use the XOPEN getsockopt/getsockname interfaces by default (for backwards compatibility).
int setsockopt(
_XOPEN_SOURCE_EXTENDED Only (UNIX 98)
When compiling 64bit, socklen_t is 64bit, but int is 32bit, so optlen ends up being 0 due the socklen being treated as a 32bit value.
Here's the required changes -- simply changing the parms to be ints instead of socklens when not using _XOPEN_SOURCE_EXTENDED and HPUX
$ rcsdiff connect.c
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info