From eb2d95de98683a387153f010077ad9c3c3b1b01d Mon Sep 17 00:00:00 2001 From: Luo Jinghua Date: Sat, 14 Jun 2008 09:07:22 +0800 Subject: [PATCH] Fix implicit declaration of function 'free'. Otherwise pointer will be truncated on 64bit arch and your programs will crash. --- pixman/pixman-region16.c | 2 ++ pixman/pixman-region32.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pixman/pixman-region16.c b/pixman/pixman-region16.c index 869e18d..e0dc008 100644 --- a/pixman/pixman-region16.c +++ b/pixman/pixman-region16.c @@ -30,6 +30,8 @@ #include "pixman-private.h" +#include + typedef pixman_box16_t box_type_t; typedef pixman_region16_data_t region_data_type_t; typedef pixman_region16_t region_type_t; diff --git a/pixman/pixman-region32.c b/pixman/pixman-region32.c index 6e083b5..8a30d1d 100644 --- a/pixman/pixman-region32.c +++ b/pixman/pixman-region32.c @@ -28,6 +28,8 @@ #include "pixman-private.h" +#include + typedef pixman_box32_t box_type_t; typedef pixman_region32_data_t region_data_type_t; typedef pixman_region32_t region_type_t; -- 2.7.4