fix incorrect end pointer in some cases when wcsrtombs stops early
[musl] / src / ipc / semtimedop.c
index a3b511b..b0c4cf9 100644 (file)
@@ -5,7 +5,7 @@
 
 int semtimedop(int id, struct sembuf *buf, size_t n, const struct timespec *ts)
 {
-#ifdef SYS_semop
+#ifdef SYS_semtimedop
        return syscall(SYS_semtimedop, id, buf, n, ts);
 #else
        return syscall(SYS_ipc, IPCOP_semtimedop, id, n, 0, buf, ts);