fmemopen: fix eof handling, hopefully right this time
[oweals/musl.git] / src / ipc / shmat.c
index c6ee4007a786855b41531f0a04679561d7493f32..38db92f9511486fa5ff69001040678e45579e2d3 100644 (file)
@@ -2,7 +2,7 @@
 #include "syscall.h"
 #include "ipc.h"
 
-#ifdef __NR_shmat
+#ifdef SYS_shmat
 void *shmat(int id, const void *addr, int flag)
 {
        return (void *)syscall(SYS_shmat, id, addr, flag);