From 4e347ced58ba2809d0631b34db81e001c577c360 Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Fri, 9 Sep 2011 01:16:37 +0000 Subject: Fix build with clang. --- x11/9box/files/patch-src__manage.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 x11/9box/files/patch-src__manage.c (limited to 'x11/9box/files/patch-src__manage.c') diff --git a/x11/9box/files/patch-src__manage.c b/x11/9box/files/patch-src__manage.c new file mode 100644 index 000000000000..99c73334bbea --- /dev/null +++ b/x11/9box/files/patch-src__manage.c @@ -0,0 +1,33 @@ +--- src/manage.c.orig 2002-12-05 05:44:23.000000000 +0800 ++++ src/manage.c 2011-09-08 14:33:13.000000000 +0800 +@@ -21,6 +21,8 @@ + + #include "dat.h" + #include "fns.h" ++#include ++#include + + void + resize_window(BoxedWindow * window) +@@ -30,8 +32,8 @@ resize_window(BoxedWindow * window) + + XGetGeometry(window->box->dpy, window->box->win, + &root_return, &x_return, &y_return, +- &width_return, &height_return, +- &border_width_return, &depth_return); ++ (unsigned int *)&width_return, (unsigned int *)&height_return, ++ (unsigned int *)&border_width_return, (unsigned int *)&depth_return); + XMoveWindow(window->box->dpy, window->button, + window->number * BUTTON_DEFAULT_WIDTH, height_return - button_height()); + printf(">> %d; %d\n", width_return, height_return); +@@ -144,8 +146,8 @@ update_buttons_position(Box * box) + + XGetGeometry(box->dpy, box->win, + &root_return, &x_return, &y_return, +- &width_return, &height_return, +- &border_width_return, &depth_return); ++ (unsigned int *)&width_return, (unsigned int *)&height_return, ++ (unsigned int *)&border_width_return, (unsigned int *)&depth_return); + + for (i=0; iboxed_windows[i]; i++) + { -- cgit v1.2.3