fix invalid free of duplocale object when malloc has been replaced
[musl] / src / ipc / shmat.c
index c6ee400..8c7407d 100644 (file)
@@ -2,7 +2,7 @@
 #include "syscall.h"
 #include "ipc.h"
 
-#ifdef __NR_shmat
+#ifndef SYS_ipc
 void *shmat(int id, const void *addr, int flag)
 {
        return (void *)syscall(SYS_shmat, id, addr, flag);