summaryrefslogtreecommitdiff
path: root/libc/bionic/sys_shm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/bionic/sys_shm.cpp')
-rw-r--r--libc/bionic/sys_shm.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libc/bionic/sys_shm.cpp b/libc/bionic/sys_shm.cpp
index f3b26e79c..f780e04d4 100644
--- a/libc/bionic/sys_shm.cpp
+++ b/libc/bionic/sys_shm.cpp
@@ -45,9 +45,8 @@ void* shmat(int id, const void* address, int flags) {
}
int shmctl(int id, int cmd, struct shmid_ds* buf) {
-#if !defined(__LP64__) || defined(__mips__)
+#if !defined(__LP64__)
// Annoyingly, the kernel requires this for 32-bit but rejects it for 64-bit.
- // Mips64 is an exception to this, it requires the flag.
cmd |= IPC_64;
#endif
#if defined(SYS_shmctl)