diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/msgrcv.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/msgrcv.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/msgrcv.c b/sysdeps/unix/sysv/linux/msgrcv.c index a8a0dea3fe..30169fb3a6 100644 --- a/sysdeps/unix/sysv/linux/msgrcv.c +++ b/sysdeps/unix/sysv/linux/msgrcv.c @@ -17,8 +17,12 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include <errno.h> #include <sys/msg.h> +#include <sysdep.h> +#include <sys/syscall.h> + /* Kludge to work around Linux' restriction of only up to five arguments to a system call. */ @@ -44,5 +48,5 @@ msgrcv (msqid, msgp, msgsz, msgtyp, msgflg) tmp.msgp = msgp; tmp.msgtyp = msgtyp; - return __ipc (IPCOP_msgrcv, msqid, msgsz, msgflg, &tmp); + return INLINE_SYSCALL (ipc, 5, IPCOP_msgrcv, msqid, msgsz, msgflg, &tmp); } |