[ANNOUNCE] xtrans 1.1
Joerg Sonnenberger
joerg at britannica.bec.de
Fri Mar 7 07:16:50 PST 2008
On Wed, Mar 05, 2008 at 09:05:43PM -0500, Adam Jackson wrote:
> git tag: xtrans-1.1
Attached patches:
- fix conditional for HP/UX and do not define weak in6addr_any
- correctly use tolower
- always include sys/stat.h
I am not aware of any system with IPv6 support and no in6addr_any.
It does mean that ipv6 support has to be disabled explicitly if the
headers exist but libc has been built without support. If that is
considered a problem, the code path should be disabled explicitly via
autoconf test.
Joerg
-------------- next part --------------
--- Xtrans.c.orig 2008-03-06 02:46:00.000000000 +0100
+++ Xtrans.c
@@ -178,8 +178,8 @@ TRANS(SelectTransport) (char *protocol)
protobuf[PROTOBUFSIZE-1] = '\0';
for (i = 0; i < PROTOBUFSIZE && protobuf[i] != '\0'; i++)
- if (isupper (protobuf[i]))
- protobuf[i] = tolower (protobuf[i]);
+ if (isupper ((unsigned char)protobuf[i]))
+ protobuf[i] = tolower ((unsigned char)protobuf[i]);
/* Look at all of the configured protocols */
-------------- next part --------------
--- Xtranssock.c.orig 2008-03-06 02:48:42.000000000 +0100
+++ Xtranssock.c
@@ -48,6 +48,7 @@ from the copyright holders.
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <sys/stat.h>
#include <ctype.h>
#ifdef XTHREADS
#include <X11/Xthreads.h>
@@ -215,7 +216,7 @@ static int TRANS(SocketINETClose) (Xtran
#ifdef UNIXCONN
-#ifdef hpux
+#ifdef __hpux
#if defined(X11_t)
#define UNIX_PATH "/usr/spool/sockets/X11/"
@@ -286,11 +287,6 @@ static int TRANS(SocketINETClose) (Xtran
* that don't have IPv6 support.
*/
#if defined(IPv6) && defined(AF_INET6)
-static const struct in6_addr local_in6addr_any = IN6ADDR_ANY_INIT;
-#pragma weak in6addr_any = local_in6addr_any
-#ifndef __USLC__
-#pragma weak getaddrinfo
-#endif
static int haveIPv6 = 1;
#endif
More information about the xorg
mailing list