From: Mathieu Desnoyers Date: Mon, 7 Feb 2011 20:50:04 +0000 (-0500) Subject: Compile fixes for 64-bit X-Git-Tag: v0.1~211 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=8eab883c99f13a74c3a30b288070f0038357103e Compile fixes for 64-bit Reported by Francis Giraldeau. Signed-off-by: Mathieu Desnoyers --- diff --git a/include/babeltrace/types.h b/include/babeltrace/types.h index 02b20911..ea60d88a 100644 --- a/include/babeltrace/types.h +++ b/include/babeltrace/types.h @@ -25,6 +25,7 @@ #include #include #include +#include /* Preallocate this many fields for structures */ #define DEFAULT_NR_STRUCT_FIELDS 8 diff --git a/types/enum.c b/types/enum.c index 015cf7fc..19961811 100644 --- a/types/enum.c +++ b/types/enum.c @@ -145,7 +145,7 @@ void enum_signed_insert(struct type_class_enum *enum_class, (gpointer) (unsigned long) q); g_hash_table_insert(enum_class->table.quark_to_value, (gpointer) (unsigned long) q, - valuep); + (gpointer) v); } void enum_unsigned_insert(struct type_class_enum *enum_class, @@ -155,7 +155,7 @@ void enum_unsigned_insert(struct type_class_enum *enum_class, (gpointer) (unsigned long) q); g_hash_table_insert(enum_class->table.quark_to_value, (gpointer) (unsigned long) q, - valuep); + (gpointer) v); } #endif /* __WORDSIZE != 32 */