From: Mathieu Desnoyers Date: Mon, 18 Oct 2010 12:39:08 +0000 (-0400) Subject: Add stddef.h include for offsetof X-Git-Tag: v0.1~219 X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=334c0a83321f9140dec6436ed0c5cbb1af8ec895;p=babeltrace.git Add stddef.h include for offsetof Signed-off-by: Mathieu Desnoyers --- diff --git a/include/babeltrace/compiler.h b/include/babeltrace/compiler.h index c8bb4db5..ee45cddc 100644 --- a/include/babeltrace/compiler.h +++ b/include/babeltrace/compiler.h @@ -1,6 +1,8 @@ #ifndef _BABELTRACE_COMPILER_H #define _BABELTRACE_COMPILER_H +#include /* for offsetof */ + #define MAYBE_BUILD_BUG_ON(cond) ((void)sizeof(char[1 - 2 * !!(cond)])) #ifndef container_of