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:
parent
4408e8595c
commit
0ca438d13b
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user