[Xcb-commit] libxcb: src
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Aug 29 01:09:20 UTC 2023
src/xcb_util.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 02a7bbed391859c79864b9aacf040d84f103d38a
Author: Peter Williams <peter at newton.cx>
Date: Thu Aug 24 21:50:29 2023 -0400
Fix compilation on Windows
Merge request !30 broke compilation on Windows by introducing unbalanced
curly braces. This change restores the previous behavior on Windows:
only TCP is supported.
diff --git a/src/xcb_util.c b/src/xcb_util.c
index 5b1f495..eb21653 100644
--- a/src/xcb_util.c
+++ b/src/xcb_util.c
@@ -244,6 +244,7 @@ static int _xcb_open(const char *host, char *protocol, const int display)
char *file = NULL;
int actual_filelen;
+#ifndef _WIN32
if (protocol && strcmp("unix", protocol) == 0 && host && host[0] == '/') {
/* Full path to socket provided, ignore everything else */
filelen = strlen(host) + 1;
@@ -255,6 +256,7 @@ static int _xcb_open(const char *host, char *protocol, const int display)
memcpy(file, host, filelen);
actual_filelen = (int)(filelen - 1);
} else {
+#endif
/* If protocol or host is "unix", fall through to Unix socket code below */
if ((!protocol || (strcmp("unix",protocol) != 0)) &&
(*host != '\0') && (strcmp("unix",host) != 0))
More information about the xcb-commit
mailing list