From 767f58a2ee3ab36c3cc7bbf20a1f83dc27142fa7 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 28 Sep 2018 08:56:14 +0300 Subject: [PATCH] include: posix: signal: Make sigev_notify_attributes depend on pthreads If pthreads support is not enabled, don't provide pthread-specific bits of signal semantics, just plain old signal features. Signed-off-by: Paul Sokolovsky --- include/posix/signal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/posix/signal.h b/include/posix/signal.h index 4205eb3a438..830b830813f 100644 --- a/include/posix/signal.h +++ b/include/posix/signal.h @@ -34,7 +34,9 @@ typedef struct sigevent { int sigev_signo; sigval sigev_value; void (*sigev_notify_function)(sigval val); + #ifdef CONFIG_PTHREAD_IPC pthread_attr_t *sigev_notify_attributes; + #endif } sigevent; #ifdef __cplusplus