summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2008-11-23 17:25:21 -0800
committerJeremy Huddleston <jeremyhu@freedesktop.org>2008-11-23 17:25:21 -0800
commitf896ae8c53e99f39b347f9f0ac2b4a8cc12cad6f (patch)
treee6561c2a66312e62da3c99164a91c1278d1c60e4 /src
parentd79621b25ba6784135b1a3aa51e9561fcf72fe7f (diff)
Shutup compiler warning about unused variable...
Diffstat (limited to 'src')
-rw-r--r--src/xcb_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xcb_util.c b/src/xcb_util.c
index 5bad16a..4ae9097 100644
--- a/src/xcb_util.c
+++ b/src/xcb_util.c
@@ -130,7 +130,9 @@ static int _xcb_open_abstract(char *protocol, const char *file);
static int _xcb_open(char *host, char *protocol, const int display)
{
+#ifdef HAVE_ABSTRACT_SOCKETS
int fd;
+#endif
static const char base[] = "/tmp/.X11-unix/X";
char file[sizeof(base) + 20];