From 34ac8b2e071062b37dd2651b15ee9bafbe3e4021 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 24 Jan 2023 01:54:12 +0800 Subject: [PATCH] signal.h: Don't include pthread.h to avoid the mutual reference let's use pthread_attr_s directly Signed-off-by: Xiang Xiao --- include/signal.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/include/signal.h b/include/signal.h index 9e642e16ca..81ed3c377e 100644 --- a/include/signal.h +++ b/include/signal.h @@ -31,10 +31,6 @@ #include #include -#ifdef CONFIG_SIG_EVTHREAD -# include /* Needed for pthread_attr_t, includes this file */ -#endif - /******************************************************************************** * Pre-processor Definitions ********************************************************************************/ @@ -356,8 +352,8 @@ struct sigevent union sigval sigev_value; /* Data passed with notification */ #ifdef CONFIG_SIG_EVTHREAD - sigev_notify_function_t sigev_notify_function; /* Notification function */ - FAR pthread_attr_t *sigev_notify_attributes; /* Notification attributes (not used) */ + sigev_notify_function_t sigev_notify_function; /* Notification function */ + FAR struct pthread_attr_s *sigev_notify_attributes; /* Notification attributes (not used) */ #endif };