The example program needs signal.h to build correctly, since the SIGEV_ constants are defined through signal.h; also document that in the synopsis. Signed-off-by: Stephen Kitt <steve@xxxxxxx> --- man3/mq_notify.3 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/man3/mq_notify.3 b/man3/mq_notify.3 index 2c35a347d..222108d61 100644 --- a/man3/mq_notify.3 +++ b/man3/mq_notify.3 @@ -28,6 +28,7 @@ mq_notify \- register for notification when a message is available .SH SYNOPSIS .nf .B #include <mqueue.h> +.BR "#include <signal.h> " "/* Definition of SIGEV_* constants */" .PP .BI "int mq_notify(mqd_t " mqdes ", const struct sigevent *" sevp ); .fi @@ -224,6 +225,7 @@ queue and then terminates the process. #include <stdio.h> #include <stdlib.h> #include <unistd.h> +#include <signal.h> #define handle_error(msg) \e do { perror(msg); exit(EXIT_FAILURE); } while (0) base-commit: 88d2b3fdef39603bc6a608a0d814d1800b6a4089 -- 2.30.2