avoid using pthread cleanup push/pop in stdio when not needed
[oweals/musl.git] / src / ipc / shmdt.c
index b4c9e69fe62bc872bef5707ff1379a5b270ecd2a..2e198b3eefb8a153605fbbc2ba83d5b623bf00db 100644 (file)
@@ -4,7 +4,7 @@
 
 int shmdt(const void *addr)
 {
-#ifdef __NR_shmdt
+#ifdef SYS_shmdt
        return syscall(SYS_shmdt, addr);
 #else
        return syscall(SYS_ipc, IPCOP_shmdt, addr);