From 8477dd114573dd969df89c5e89f6f9260efa8cf6 Mon Sep 17 00:00:00 2001 From: fbrosson Date: Sun, 25 Mar 2018 17:51:52 +0000 Subject: [PATCH] libxcb: gcc2 fix, required after the bump from 1.6 to 1.12. --- x11-libs/libxcb/patches/libxcb-1.12.patchset | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/x11-libs/libxcb/patches/libxcb-1.12.patchset b/x11-libs/libxcb/patches/libxcb-1.12.patchset index da75373c9..ac58a281c 100644 --- a/x11-libs/libxcb/patches/libxcb-1.12.patchset +++ b/x11-libs/libxcb/patches/libxcb-1.12.patchset @@ -35,3 +35,27 @@ index a3357ef..98fd793 100644 -- 2.14.2 + +From d0fe33a095851988d674431efb1abe27ae7afd53 Mon Sep 17 00:00:00 2001 +From: fbrosson +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 +