|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-1733119 ] socket.c assumes xopen getsockopt/getsockname
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Fri, 08 Jun 2007 01:10:26 -0700
Bugs item #1733119, was opened at 2007-06-08 00:43
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
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Message:
Can you please submit the patch done with diff -u ? I'm having trouble
Is there any particular reason why we shouldn't just try to define
I would really prefer a way that cures the problem without relying on
----------------------------------------------------------------------
Comment By: rrauenza (rrauenza)
Message:
Looks like ftp.c and tftp.c also need to be fixed. Anywhere those calls
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info