Fix implicit declaration of function 'free'.
authorLuo Jinghua <sunmoon1997@gmail.com>
Sat, 14 Jun 2008 01:07:22 +0000 (09:07 +0800)
committerLuo Jinghua <sunmoon1997@gmail.com>
Sat, 14 Jun 2008 01:07:22 +0000 (09:07 +0800)
Otherwise pointer will be truncated on 64bit arch and your programs will crash.

pixman/pixman-region16.c
pixman/pixman-region32.c

index 869e18d..e0dc008 100644 (file)
@@ -30,6 +30,8 @@
 
 #include "pixman-private.h"
 
+#include <stdlib.h>
+
 typedef pixman_box16_t         box_type_t;
 typedef pixman_region16_data_t region_data_type_t;
 typedef pixman_region16_t      region_type_t;
index 6e083b5..8a30d1d 100644 (file)
@@ -28,6 +28,8 @@
 
 #include "pixman-private.h"
 
+#include <stdlib.h>
+
 typedef pixman_box32_t         box_type_t;
 typedef pixman_region32_data_t region_data_type_t;
 typedef pixman_region32_t      region_type_t;