Yang Tse
dfcd806a8b
Change recvfrom's sixth argument data type to the 'historically standard' 'int'
...
data type for systems where this sixth argument is prototyped as a void pointer.
Start of thread: http://curl.haxx.se/mail/lib-2008-07/0153.html
2008-07-21 18:24:32 +00:00
Yang Tse
14cb127954
use prototypes to improve getservbyport_r detection
2008-07-21 14:01:46 +00:00
Yang Tse
d7c09173d3
Adjust recvfrom's sixth arg data type definition for NetWare (LIBC)
2008-07-21 03:50:02 +00:00
Yang Tse
1faffd7a7e
Use the sreadfrom() wrapper to replace recvfrom() in our code.
2008-07-21 03:06:08 +00:00
Yang Tse
44ae9e4697
when recvfrom prototype uses a void pointer for arguments 2, 5 or 6 this will
...
now cause the definition of RECVFROM_TYPE_ARG2_IS_VOID, RECVFROM_TYPE_ARG5_IS_VOID
or RECVFROM_TYPE_ARG6_IS_VOID, as appropriate.
2008-07-21 00:36:55 +00:00
Yang Tse
4ef94e065f
Adjust DEC/Compaq C compiler settings
2008-07-20 17:18:29 +00:00
Yang Tse
abbde56a86
Added "pointer to void" as another data type to check for the sixth argument of
...
function recvfrom as a result of the info additionally logged when running on a
Solaris system.
The compiler error showed that the prototype being used on Solaris was the one
declared in line 427 of "/usr/include/sys/socket.h" as:
function(int,
pointer to void,
unsigned int,
int,
pointer to struct sockaddr,
pointer to void) returning int
2008-07-20 09:46:52 +00:00
Yang Tse
7b0adfa38d
Adjust DEC/Compaq C compiler settings
2008-07-19 11:27:45 +00:00
Yang Tse
2aeb0314f5
RECVFROM_TYPE_ARG2, RECVFROM_TYPE_ARG5 and RECVFROM_TYPE_ARG6 are now defined
...
to the data type pointed by its respective argument and not the pointer type.
2008-07-17 03:07:54 +00:00
Yang Tse
7dd6d7cbe1
Configure process now checks availability of recvfrom() socket function and
...
finds out its return type and the types of its arguments. Added definitions
for non-configure systems config files, and introduced macro sreadfrom which
will be used on udp sockets as a recvfrom() wrapper.
2008-07-16 19:16:41 +00:00
Yang Tse
6b84d9ff24
Initial DEC/Compaq C compiler detection and flags
2008-07-16 14:17:56 +00:00
Yang Tse
b95f5e5bed
Improved configure detection of number of arguments for getservbyport_r
2008-07-16 12:26:09 +00:00
Yang Tse
e5e2cd5659
Allow --enable-largefile and --disable-largefile configurations.
...
Configure process no longer needs nor checks size of curl_off_t.
Library will now be built with _REENTRANT symbol defined.
2008-07-15 16:43:39 +00:00
Yang Tse
2265b9281c
fix compiler warning
2008-07-10 08:21:48 +00:00
Yang Tse
8ee63e432d
since Jun 30 2008 MAXHOSTNAMELEN define is no longer used
2008-07-09 16:38:55 +00:00
Yang Tse
371f63f73a
fix c-ares version reported in generated libcares.pc file when building
...
from CVS tree.
2008-07-07 02:11:21 +00:00
Yang Tse
13f4c3ea54
egrep and ar are also mandatory
2008-07-04 04:03:56 +00:00
Daniel Stenberg
d5c3a696fc
just to clarify that c-ares actually have some ipv6 support
2008-07-03 11:41:11 +00:00
Daniel Stenberg
5e74e48177
ares_gethostbyname() fallback from AAA to A records with CNAME present
2008-07-03 11:34:34 +00:00
Daniel Stenberg
93e7573628
- Phil Blundell: If you ask ares_gethostbyname() to do an AF_INET6 lookup and
...
the target host has only A records, it automatically falls back to an
AF_INET lookup and gives you the A results. However, if the target host has
a CNAME record, this behaviour is defeated since the original query does
return some data even though ares_parse_aaa_reply() doesn't consider it
relevant. Here's a small patch to make it behave the same with and without
the CNAME.
2008-07-03 11:32:35 +00:00
Yang Tse
daa25aa705
The configure process will now halt when sed or grep are unavailable
2008-07-02 17:42:08 +00:00
Yang Tse
cd1f1d080c
fallback to gettimeofday when monotonic clock is unavailable at run-time
2008-07-02 03:04:56 +00:00
Yang Tse
3e04944084
IBM C/C++ compiler predefined macro check
2008-07-01 10:29:25 +00:00
Yang Tse
83b7feb146
set earlier in configure process IBM compilers optimization flags
2008-07-01 00:30:46 +00:00
Yang Tse
84e9cedf45
make check message wording more precise
2008-06-30 14:10:27 +00:00
Daniel Stenberg
705c749aa1
- As was pointed out to me by Andreas Schuldei, the MAXHOSTNAMELEN define is
...
not posix or anything and thus c-ares failed to build on hurd (and possibly
elsewhere). The define was also somewhat artificially used in the windows
port. Now, I instead rewrote the use of gethostbyname to enlarge the host
name buffer in case of need and totally avoid the use of the MAXHOSTNAMELEN
define. I thus also removed the defien from the namser.h file where it was
once added for the windows build.
I also fixed init_by_defaults() function to not leak memory in case if
error.
2008-06-30 12:48:25 +00:00
Yang Tse
e4ac0f9347
fix C style comment
2008-06-29 11:08:52 +00:00
Yang Tse
08d3bc37aa
John Lightsey filed bug report #1999181 : "CLOCK_MONOTONIC always fails on
...
some systems" (http://curl.haxx.se/bug/view.cgi?id=1999181 ). The problem was
that the configure script did not use the _POSIX_MONOTONIC_CLOCK feature test
macro when checking monotonic clock availability. This is now fixed and the
monotonic clock will not be used unless the feature test macro is defined
with a value greater than zero indicating always supported.
2008-06-29 03:19:21 +00:00
Yang Tse
8dc7f22b9a
Modified configuration script to actually verify if the compiler is good
...
enough at detecting compilation errors or at least it has been properly
configured to do so. Configuration heavily depends on this capability, so
if this compiler sanity check fails the configuration process will now fail.
2008-06-20 18:09:48 +00:00
Yang Tse
c6148bcad5
No longer break out of a shell "for" statement from inside
...
AC_FOO_IFELSE macros, otherwise temp files are not removed.
Identation adjustment.
2008-06-18 04:39:29 +00:00
Gunter Knauf
d29c66e36d
enable additional CFLAGS from commandline.
2008-06-11 00:07:08 +00:00
Yang Tse
4ccd0a85b1
fix pkg-config reporting of private libraries needed for static linking
2008-06-09 01:06:48 +00:00
Yang Tse
f953ff981c
MSVC does build Windows native targets
2008-06-06 18:44:40 +00:00
Yang Tse
9191dc5c33
Brad House fixed a missing header file inclusion in adig sample program
curl-7_18_2
2008-05-30 15:26:42 +00:00
Daniel Stenberg
41f303a6bd
start working on 1.5.3
2008-05-29 20:39:18 +00:00
Daniel Stenberg
2d09f0bf7c
1.5.2
cares-1_5_2
2008-05-29 20:10:40 +00:00
Yang Tse
940b551d2a
fix compiler warning: unreferenced formal parameter
2008-05-26 13:52:25 +00:00
Daniel Stenberg
9fae0a48b1
list all local sources the (demo) tools need, add a few missing scripts to
...
the dist tarball and remove a two duplicate file names from EXTRA_DIST
(most of it pointed out by Yang Tse)
2008-05-23 21:52:56 +00:00
Daniel Stenberg
f0d0df9e9b
this is not used (anymore)
2008-05-23 21:46:29 +00:00
Daniel Stenberg
d7c4f9ad16
make sure the configure.ac file with the correct version number is shipped
...
in the tarball
2008-05-22 17:41:29 +00:00
Yang Tse
9db5e3476a
MSVC6+ clean-up targets must also remove acountry.exe
2008-05-22 16:10:57 +00:00
Yang Tse
b7701a257c
sync with reality
2008-05-22 15:31:06 +00:00
Yang Tse
9220e0984a
fix: [action-if-found] part of AC_CHECK_TYPE macro cannot be quoted when empty
2008-05-21 18:24:09 +00:00
Yang Tse
41b0e80a3f
fix: remove need and definition of HAVE_SOCKLEN_T symbol
2008-05-21 14:04:14 +00:00
Yang Tse
e842c9ca3b
fix: socklen_t definition comment
2008-05-21 13:57:51 +00:00
Yang Tse
d3bad80edd
update several macros using AC_TRY_LINK with AC_LINK_IFELSE
2008-05-20 15:55:31 +00:00
Yang Tse
6783b29432
fix underquoting of AC_LANG_PROGRAM arguments
2008-05-20 04:23:31 +00:00
Yang Tse
0129767bf9
if'def out private function ares__tvdiff(), it is not in use yet.
2008-05-20 01:24:19 +00:00
Yang Tse
c31375137d
update several macros using AC_TRY_LINK with AC_LINK_IFELSE
2008-05-20 01:04:13 +00:00
Yang Tse
822c0e1498
fix socklen_t equivalent detection when cross compiling Windows target
2008-05-19 12:31:12 +00:00