Skip to content

Commit 1a40a2a

Browse files
committed
posix: signal.h: include sigev_notify_function field in struct sigevent
Previously, the `sigev_notify_function` field was missing from `struct sigevent`. Additionally, `sigev_notify_attributes` were incorrectly named `sigev_thread_attr`. Add it back to ensure that we are able to support realtime signals. Signed-off-by: Chris Friedt <[email protected]>
1 parent 0cc2a59 commit 1a40a2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/zephyr/posix/posix_signal.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ union sigval {
111111
#if !defined(_SIGEVENT_DECLARED) && !defined(__sigevent_defined)
112112
struct sigevent {
113113
#if defined(_POSIX_THREADS) || defined(__DOXYGEN__)
114-
pthread_attr_t *sigev_thread_attr;
114+
pthread_attr_t *sigev_notify_attributes;
115+
void (*sigev_notify_function)(union sigval value);
115116
#endif
116117
union sigval sigev_value;
117118
int sigev_notify;

0 commit comments

Comments
 (0)