diff options
author | rmax <rmax> | 2010-09-28 15:13:54 (GMT) |
---|---|---|
committer | rmax <rmax> | 2010-09-28 15:13:54 (GMT) |
commit | 8de390107eb243b132d238c82d5dad142732ea6f (patch) | |
tree | 3c49ea8f056c9653ddd2cfed43ac4615cba322bb /unix/tclUnixPort.h | |
parent | 76ae3756ac54d0957e5d6c430aec55b52ccc0bf3 (diff) | |
download | tcl-8de390107eb243b132d238c82d5dad142732ea6f.zip tcl-8de390107eb243b132d238c82d5dad142732ea6f.tar.gz tcl-8de390107eb243b132d238c82d5dad142732ea6f.tar.bz2 |
* doc/socket.n: Document the changes to the [socket] and
[fconfiguyre] commands.
* generic/tclInt.h: Introduce TclCreateSocketAddress() as a
* generic/tclIOSock.c: replacement for the platform-dependent
* unix/tclUnixSock.c: TclpCreateSocketAddress() functions.
* unix/tclUnixChan.c: Extend the [socket] and [fconfigure]
* unix/tclUnixPort.h: commands to behave as proposed in
* win/tclWinSock.c: TIP #162.
* win/tclWinPort.h:
* compat/fake-rfc2553.c: A compat implementation of the APIs
* compat/fake-rfc2553.h: defined in RFC-2553 (getaddrinfo() and
friends) on top of the existing
gethostbyname() etc.
* unix/configure.in: Test whether the fake-implementation is
* unix/tcl.m4: needed.
* unix/Makefile.in: Add a compile target for fake-rfc2553.
* win/configure.in: Allow cross-compilation by default
* tests/socket.test: Improve the test suite to make more use of
* tests/remote.tcl: randomized ports to reduce interference with
tests running in parallel or other services
on the machine.
Diffstat (limited to 'unix/tclUnixPort.h')
-rw-r--r-- | unix/tclUnixPort.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h index 6ed41a1..9283d8b 100644 --- a/unix/tclUnixPort.h +++ b/unix/tclUnixPort.h @@ -19,7 +19,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixPort.h,v 1.72 2010/04/23 15:45:15 nijtmans Exp $ + * RCS: @(#) $Id: tclUnixPort.h,v 1.73 2010/09/28 15:13:55 rmax Exp $ */ #ifndef _TCLUNIXPORT @@ -132,7 +132,10 @@ MODULE_SCOPE int TclUnixSetBlockingMode(int fd, int mode); #endif #include <netinet/in.h> /* struct in_addr, struct sockaddr_in */ #include <arpa/inet.h> /* inet_ntoa() */ -#include <netdb.h> /* gethostbyname() */ +#include <netdb.h> /* getaddrinfo() */ +#ifdef NEED_FAKE_RFC2553 +# include "../compat/fake-rfc2553.h" +#endif /* * Some platforms (e.g. SunOS) don't define FLT_MAX and FLT_MIN, so we @@ -597,6 +600,11 @@ typedef int socklen_t; # define inet_ntoa(x) TclpInetNtoa(x) #endif /* TCL_THREADS */ +/* FIXME */ +#ifndef AF_INET6 +#define AF_INET6 10 +#endif + /* * Set of MT-safe implementations of some * known-to-be-MT-unsafe library calls. |