From 276e6080c8646c7f8a9139da8028f25c80d8bdca Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 3 Mar 2020 12:11:49 +0100 Subject: Linux: mq_* syscall numbers are always available Due to the built-in tables, __NR_mq_getsetattr, __NR_mq_notify, __NR_mq_open, __NR_mq_timedreceive, __NR_mq_timedsend, __NR_mq_unlink are always defined. Reviewed-by: Adhemerval Zanella --- sysdeps/unix/sysv/linux/mq_open.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'sysdeps/unix/sysv/linux/mq_open.c') diff --git a/sysdeps/unix/sysv/linux/mq_open.c b/sysdeps/unix/sysv/linux/mq_open.c index ebb1bfc8b6..c88dc580e4 100644 --- a/sysdeps/unix/sysv/linux/mq_open.c +++ b/sysdeps/unix/sysv/linux/mq_open.c @@ -22,8 +22,6 @@ #include #include -#ifdef __NR_mq_open - /* Establish connection between a process and a message queue NAME and return message queue descriptor or (mqd_t) -1 on error. OFLAG determines the type of access used. If O_CREAT is on OFLAG, the third argument is @@ -61,6 +59,3 @@ __mq_open_2 (const char *name, int oflag) return __mq_open (name, oflag); } -#else -# include -#endif -- cgit v1.2.3