summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2025-01-20 09:54:21 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2025-01-20 15:28:11 -0800
commitc8c291390f4befb7d813d7fce6caeb6607561903 (patch)
treee9b276c6082bf19fcd39f703c6a3162e7730f7f5
parent633ac2f03369eb93b70958c783722cfe3e93aacc (diff)
is_numeric: Add defined(X11_t) to checksHEADmaster
Fixes builds of XTS which still builds X11 client side code (unlike libX11 which relies on xcb instead of xtrans now for X11 connections). Fixes: 0f15306 ("is_numeric: Add TRANS_SERVER to required ifdefs") Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/28>
-rw-r--r--Xtranssock.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Xtranssock.c b/Xtranssock.c
index b02b997..4c7f80b 100644
--- a/Xtranssock.c
+++ b/Xtranssock.c
@@ -213,8 +213,9 @@ static Sockettrans2dev Sockettrans2devtab[] = {
static int TRANS(SocketINETClose) (XtransConnInfo ciptr);
#endif
-#if (defined(TCPCONN) && defined(TRANS_SERVER)) || defined(TRANS_REOPEN) || \
- !defined(HAVE_GETADDRINFO)
+#if (defined(TCPCONN) && \
+ (defined(TRANS_SERVER) || defined(X11_t) || !defined(HAVE_GETADDRINFO))) \
+ || defined(TRANS_REOPEN)
static int
is_numeric (const char *str)
{