Add stddef.h include for offsetof
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 18 Oct 2010 12:39:08 +0000 (08:39 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 18 Oct 2010 12:39:08 +0000 (08:39 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/babeltrace/compiler.h

index c8bb4db5b8cd38d61be56aa06da8f892d3e13969..ee45cddc6ed0ebc8dfbe6015ffa005dc2e1aab7e 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _BABELTRACE_COMPILER_H
 #define _BABELTRACE_COMPILER_H
 
+#include <stddef.h>    /* for offsetof */
+
 #define MAYBE_BUILD_BUG_ON(cond) ((void)sizeof(char[1 - 2 * !!(cond)]))
 
 #ifndef container_of
This page took 0.033243 seconds and 4 git commands to generate.