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.
This commit is contained in:
Дмитрий Левин 2015-11-27 14:15:30 +00:00
parent 4408e8595c
commit 0ca438d13b

View File

@ -1,7 +1,13 @@
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <sys/ipc.h>
#include <sys/msg.h>
#include <sys/stat.h>
#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,