]> granicus.if.org Git - musl/commitdiff
fix harmless inconsistency in semtimedop
authorRich Felker <dalias@aerifal.cx>
Sat, 9 Nov 2013 22:54:20 +0000 (17:54 -0500)
committerRich Felker <dalias@aerifal.cx>
Sat, 9 Nov 2013 22:54:20 +0000 (17:54 -0500)
this should not matter since the reality is that either all the sysv
sem syscalls are individual syscalls, or all of them are multiplexed
on the SYS_ipc syscall (depending on arch). but best to be consistent
anyway.

src/ipc/semtimedop.c

index a3b511b6810e510f9751d618a11627bae4a05d11..b0c4cf9f82a79cd8b532c19246d7b315fac91b3e 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);