diff options
author | Szabolcs Nagy <nsz@port70.net> | 2019-05-09 22:49:28 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2019-07-01 14:17:59 -0400 |
commit | 4acfc287d859bc643c9f9fa63d82e8c90b984d7c (patch) | |
tree | 21ca5531740752becb7a0927339c8c995db45c0a /src/ipc/msgsnd.c | |
parent | b574de5bf3baeb9f1a54b4c05660830e36e5fca2 (diff) | |
download | musl-4acfc287d859bc643c9f9fa63d82e8c90b984d7c.tar.gz musl-4acfc287d859bc643c9f9fa63d82e8c90b984d7c.tar.bz2 musl-4acfc287d859bc643c9f9fa63d82e8c90b984d7c.tar.xz musl-4acfc287d859bc643c9f9fa63d82e8c90b984d7c.zip |
ipc: prefer SYS_ipc when it is defined
Linux v5.1 introduced ipc syscalls on targets where previously only
SYS_ipc was available, change the logic such that the ipc code keeps
using SYS_ipc which works backward compatibly on older kernels.
This changes behaviour on microblaze which had both mechanisms, now
SYS_ipc will be used instead of separate syscalls.
Diffstat (limited to 'src/ipc/msgsnd.c')
-rw-r--r-- | src/ipc/msgsnd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipc/msgsnd.c b/src/ipc/msgsnd.c index e1abde3a..99bb17e9 100644 --- a/src/ipc/msgsnd.c +++ b/src/ipc/msgsnd.c @@ -4,7 +4,7 @@ int msgsnd(int q, const void *m, size_t len, int flag) { -#ifdef SYS_msgsnd +#ifndef SYS_ipc return syscall_cp(SYS_msgsnd, q, m, len, flag); #else return syscall_cp(SYS_ipc, IPCOP_msgsnd, q, len, flag, m); |