Yang Tse
e4388643f1
Checking for function getnameinfo and its arguments is finally
...
done in one single function CURL_CHECK_FUNC_GETNAMEINFO which
will only define HAVE_GETNAMEINFO if the function has been found
AND the type of its arguments has been properly been detected
18 years ago
Yang Tse
bc4208201c
Undefine HAVE_GETNAMEINFO if unable to find
...
proper types to use for getnameinfo args
18 years ago
Yang Tse
a0d69d52a1
Undefine HAVE_GETNAMEINFO if unable to find
...
proper types to use for getnameinfo args
18 years ago
Yang Tse
e3657644d6
In CURL_FUNC_GETNAMEINFO_ARGTYPES, when cross-compiling a windows
...
target use calling convention WSAAPI for getnameinfo() prototype.
Checking type DWORD as argument 4 and 6 of getnameinfo not needed.
18 years ago
Yang Tse
df2b1251a0
fix ioctlsocket detection
18 years ago
Daniel Stenberg
d551412a32
added our standard source header
18 years ago
Daniel Stenberg
6de67a134e
fix closing parentheses
18 years ago
Yang Tse
fd0d560b47
Fix quoting
18 years ago
Yang Tse
7b488a3bef
Use native type SOCKET instead of int when testing functionality of ioctlsocket on Windows
18 years ago
Yang Tse
f448168501
Ooops
18 years ago
Yang Tse
898bb397b1
Add checking for type DWORD as argument 4 and 6 of getnameinfo
18 years ago
Yang Tse
74ed5b5ebd
Adjust more windows header includes
18 years ago
Yang Tse
d6eb1a7b98
Fix guard detection of _WIN32_WINNT for MingW in CURL_FUNC_GETNAMEINFO_ARGTYPES
18 years ago
Yang Tse
4ff56b15e9
Add check for 'unsigned int' as type of arguments 4 and 6 of getnameinfo
18 years ago
Yang Tse
5fd8dd2dce
When checking the type of the first argument of getnameinfo do it in the
...
following order: 'struct sockaddr *' 'const struct sockaddr *' 'void *'.
18 years ago
Yang Tse
8a3280a2de
MingW guards getnameinfo, getaddrinfo and freeaddrinfo with _WIN32_WINNT >= 0x0501
18 years ago
Yang Tse
939d368d5f
Check first arg of getnameinfo with and without const qualifier.
18 years ago
Yang Tse
47c06fa308
Avoid breaking configure due to CURL_FUNC_GETNAMEINFO_ARGTYPES failure, since at this point nothing depends on it.
18 years ago
Yang Tse
b7f447f8d8
const qualifier in getnameinfo check
18 years ago
Yang Tse
03af76b631
Since there is no proof of the existence of a platform which would
...
justify checking for socklen_t in more than one function, the code
used to find a valid socklen_t replacement is simplified back. The
only function that will be used to find a socklen_t replacement is
getpeername, as it has been since revision 1.4 of curl/acinclude.m4
18 years ago
Yang Tse
d6ffb4c177
TYPE_SOCKLEN_T completely replaced by CURL_CHECK_TYPE_SOCKLEN_T.
...
CURL_FUNC_GETNAMEINFO_ARGTYPES now also checks first argument.
All related changes taken to cares configuration scripts.
18 years ago
Yang Tse
fea5ddf585
More quotes
18 years ago
Yang Tse
b9f39c2711
Fix copy paste bug
18 years ago
Yang Tse
5acac0309a
Test CURL_CHECK_TYPE_SOCKLEN_T
18 years ago
Yang Tse
78febad718
Oops. Wrong double quotes
18 years ago
Yang Tse
a6a5bba0a9
Experimental check for socklen_t CURL_CHECK_TYPE_SOCKLEN_T
18 years ago
Yang Tse
51581c034d
Tests to check the availability of compilable and
...
valid windows.h winsock.h winsock2.h and ws2tcpip.h
header files:
CURL_CHECK_HEADER_WINDOWS
CURL_CHECK_HEADER_WINSOCK
CURL_CHECK_HEADER_WINSOCK2
CURL_CHECK_HEADER_WS2TCPIP
18 years ago
Yang Tse
7f5d092223
Some preprocessors have problems if the # character isn't at position 1.
18 years ago
Yang Tse
2645782f89
Determine the correct type to be passed to four of the `getnameinfo' function's arguments, and define those types in `GETNAMEINFO_TYPE_ARG2', `GETNAMEINFO_TYPE_ARG46', and `GETNAMEINFO_TYPE_ARG7'.
18 years ago
Daniel Stenberg
be524fed38
on windows (mingw32) the sockaddr_storage struct is in winsock2.h
18 years ago
Daniel Stenberg
c7b7bf32f8
removed the unreachable code warning from gcc debug builds, even the most
...
recent gcc versions give far too many false positives for this to be valuable
18 years ago
Daniel Stenberg
ef35519696
removed some inaccurate comments about the TYPE_IN_ADDR_T check
18 years ago
Dan Fandrich
e81d4ac8c8
Add -Wdeclaration-after-statement to gcc to detect accidental C99-style
...
variable declarations.
18 years ago
Dan Fandrich
b37a0b0512
Detect (or at least infer) glibc-style strerror_r even when cross-compiling.
18 years ago
Daniel Stenberg
b9e5302f27
adjusted the strerror_r test more, use _REENTRANT instead of _THREAD_SAFE
...
when looking for the prototype
18 years ago
Daniel Stenberg
dd7b6aef39
The configure check for strerror_r() failed to detect the proper API at
...
times, like on my HP-UX 10.20 tests. And then lib/strerror.c badly assumed
the glibc version if the posix define wasn't set (since it _had_ found a
strerror_r).
18 years ago
Daniel Stenberg
07e58aaa79
Sort of "fixed" KNOWN_BUGS #4 : curl now builds IPv6 enabled on AIX 4.3. At
...
least it should no longer cause a compiler error. However, it does not have
AI_NUMERICHOST so we cannot getaddrinfo() any numerical addresses with it (we
use that for FTP PORT/EPRT)! So, I modified the configure check that checks if
the getaddrinfo() is working, to use AI_NUMERICHOST since then it'll fail on
AIX 4.3 and it will automatically build with IPv6 support disabled.
18 years ago
Daniel Stenberg
a31ddd363b
Now configure checks for struct sockaddr_storage and the ftp code tries
...
to survive without it if not found. AIX 4.3 targetted adjustment.
18 years ago
Daniel Stenberg
4e555c7b32
When cross-compiling, we do some better checking for the NI_WITHSCOPEID option instead of just assuming it is present.
18 years ago
Dan Fandrich
1f68fa19c7
Finally fixed the LDAP library searching bug on libtool ver. 1.5
18 years ago
Dan Fandrich
228e627475
Use the libtool variables better to make LDAP library search work on
...
more platforms.
18 years ago
Dan Fandrich
b5112096d7
Work around a bug in libtool ver. 1.5 during LDAP library detection.
19 years ago
Dan Fandrich
205f8b266c
Fixed LDAP library file name bug (KNOWN_BUGS #1 ). configure now auto-detects
...
the correct dynamic library names by default, and provides override switches
--with-ldap-lib, --with-lber-lib and --without-lber-lib. Added
CURL_DISABLE_LDAP to platform-specific config files to disable LDAP
support on those platforms that probably don't have dynamic OpenLDAP
libraries available to avoid compile errors.
19 years ago
Daniel Stenberg
58f4af7973
Marcin Konicki provided two configure fixes and a source fix to make curl
...
build out-of-the-box on BeOS.
19 years ago
Dan Fandrich
0e59182945
gcc 2.7 can't handle a few warning options that gcc 2.95 can.
19 years ago
Dan Fandrich
38181fbc74
Fix the --enable-debug compiler warning options for older versions of gcc.
19 years ago
Daniel Stenberg
18dd8154e2
Reverted the previous change and redid it differently as it seemed to not
...
work. This is supposed to detect cross-compiling and alert the user, and not
do the POSIX-check for strerror_r() if it already detected a glibc-compatible
strerror_r().
19 years ago
Daniel Stenberg
e0b436f8e1
1 - do better when cross-compiling when checking for strerror_r() - alert
...
the user.
2 - don't check for POSIX-style if glibc-style is found first
19 years ago
Daniel Stenberg
55c015c136
typo AGAIN
19 years ago
Daniel Stenberg
bde6c6685e
When using the icc compiler, we also ignore remark #1418 "external definition
...
with no prior declaration" since this is a habit we have in the code.
19 years ago