diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2025-01-20 09:54:21 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2025-01-20 15:28:11 -0800 |
commit | c8c291390f4befb7d813d7fce6caeb6607561903 (patch) | |
tree | e9b276c6082bf19fcd39f703c6a3162e7730f7f5 | |
parent | 633ac2f03369eb93b70958c783722cfe3e93aacc (diff) |
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.c | 5 |
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) { |