diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2007-10-22 08:58:19 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2007-10-22 08:58:19 +0000 |
commit | 64e73a5ffbefa46d87420013ca4279ac8b685acb (patch) | |
tree | ba2654c67c40cead03a654366f7c3a8c61ffedf5 /macros | |
parent | 6fefc9b02c455b962a7882edd27b434985b44968 (diff) | |
download | neon-64e73a5ffbefa46d87420013ca4279ac8b685acb.tar.gz |
* src/ne_socket.h (ne_sock_peer, ne_sock_prebind): Add prototypes.
* src/ne_socket.c (ne_sock_peer, ne_sock_prebind, do_bind): New
functions.
(ne_sock_connect): Use do_bind.
(struct ne_socket_s): Add laddr, lport fields.
* macros/neon.m4 (LIBNEON_SOURCE_CHECKS): Define socklen_t if
not available.
* config.hw.in: Define socklen_t.
* test/socket.c (addr_peer, serve_ppeer, try_prebind, prebind):
New tests.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1268 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'macros')
-rw-r--r-- | macros/neon.m4 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/macros/neon.m4 b/macros/neon.m4 index 3e11d12..47cd61e 100644 --- a/macros/neon.m4 +++ b/macros/neon.m4 @@ -679,7 +679,10 @@ else ]) fi -AC_CHECK_TYPES(socklen_t,,,[ +AC_CHECK_TYPES(socklen_t,, +/* Linux accept(2) says this should be size_t for SunOS 5... gah. */ +[AC_DEFINE([socklen_t], [int], + [Define if socklen_t is not available])],[ #ifdef HAVE_SYS_TYPES_H # include <sys/types.h> #endif |