libxcb: gcc2 fix, required after the bump from 1.6 to 1.12.

This commit is contained in:
fbrosson
2018-03-25 17:51:52 +00:00
parent 8854aac1c6
commit 8477dd1145

View File

@@ -35,3 +35,27 @@ index a3357ef..98fd793 100644
--
2.14.2
From d0fe33a095851988d674431efb1abe27ae7afd53 Mon Sep 17 00:00:00 2001
From: fbrosson <fbrosson@localhost>
Date: Sun, 25 Mar 2018 17:51:15 +0000
Subject: C89 fixes for gcc2 compatibility, needed since libxcb 1.12.
diff --git a/src/xcb_out.c b/src/xcb_out.c
index 3601a5f..11a5cf7 100644
--- a/src/xcb_out.c
+++ b/src/xcb_out.c
@@ -179,7 +179,8 @@ uint32_t xcb_get_maximum_request_length(xcb_connection_t *c)
static void close_fds(int *fds, unsigned int num_fds)
{
- for (unsigned int index = 0; index < num_fds; index++)
+ unsigned int index;
+ for (index = 0; index < num_fds; index++)
close(fds[index]);
}
--
2.16.3