From 0ca438d13bbf32796b9077704b0741f930696ec3 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Fri, 27 Nov 2015 14:15:30 +0000 Subject: [PATCH] tests: fix ipc_msgbuf.test on x32 * tests/ipc_msgbuf.c: Include "config.h" and "kernel_types.h". (main): Replace "long" with "kernel_long_t" in struct msgbuf. --- tests/ipc_msgbuf.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/ipc_msgbuf.c b/tests/ipc_msgbuf.c index b7de2c8c..954aaf0f 100644 --- a/tests/ipc_msgbuf.c +++ b/tests/ipc_msgbuf.c @@ -1,7 +1,13 @@ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include #include #include +#include "kernel_types.h" + #define text_string "STRACE_STRING" #define msgsz sizeof(text_string) @@ -10,7 +16,7 @@ main (void) { const long mtype = 0xdefaced; struct { - long mtype; + kernel_long_t mtype; char mtext[msgsz]; } msg = { .mtype = mtype, -- 2.40.0