aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/include/uapi/asm/msgbuf.h
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2014-11-10 22:04:47 +0100
committerHelge Deller <deller@gmx.de>2014-11-10 22:25:29 +0100
commitd8f5457ab93965f0e695516ad23548954e3e9044 (patch)
tree08bc851d3daaf717b3ed603a6dff55d15e9ed5aa /arch/parisc/include/uapi/asm/msgbuf.h
parentparisc: Use compat layer for msgctl, shmat, shmctl and semtimedop syscalls (diff)
downloadlinux-dev-d8f5457ab93965f0e695516ad23548954e3e9044.tar.xz
linux-dev-d8f5457ab93965f0e695516ad23548954e3e9044.zip
parisc: Avoid using CONFIG_64BIT in userspace exported headers
The gcc compiler provide the predefined __LP64__ macro. Use that instead. Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/include/uapi/asm/msgbuf.h')
-rw-r--r--arch/parisc/include/uapi/asm/msgbuf.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/parisc/include/uapi/asm/msgbuf.h b/arch/parisc/include/uapi/asm/msgbuf.h
index fe88f2649418..342138983914 100644
--- a/arch/parisc/include/uapi/asm/msgbuf.h
+++ b/arch/parisc/include/uapi/asm/msgbuf.h
@@ -1,6 +1,8 @@
#ifndef _PARISC_MSGBUF_H
#define _PARISC_MSGBUF_H
+#include <asm/bitsperlong.h>
+
/*
* The msqid64_ds structure for parisc architecture, copied from sparc.
* Note extra padding because this structure is passed back and forth
@@ -13,15 +15,15 @@
struct msqid64_ds {
struct ipc64_perm msg_perm;
-#ifndef CONFIG_64BIT
+#if __BITS_PER_LONG != 64
unsigned int __pad1;
#endif
__kernel_time_t msg_stime; /* last msgsnd time */
-#ifndef CONFIG_64BIT
+#if __BITS_PER_LONG != 64
unsigned int __pad2;
#endif
__kernel_time_t msg_rtime; /* last msgrcv time */
-#ifndef CONFIG_64BIT
+#if __BITS_PER_LONG != 64
unsigned int __pad3;
#endif
__kernel_time_t msg_ctime; /* last change time */