Skip to content

Commit 07249ae

Browse files
committed
posix: signal.h: sigevent is a struct not a typedef
A previous typo went undetected that declared a type-defined `sigevent_t`, which is obviously incorrect, since it is only specified as `struct sigevent`. Signed-off-by: Chris Friedt <[email protected]>
1 parent 5e4ceac commit 07249ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/zephyr/posix/posix_signal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ typedef struct {
101101
union sigval; /* forward declaration (to preserve spec order) */
102102

103103
#if !defined(_SIGEVENT_DECLARED) && !defined(__sigevent_defined)
104-
typedef struct {
104+
struct sigevent {
105105
#if defined(_POSIX_THREADS) || defined(__DOXYGEN__)
106106
pthread_attr_t *sigev_thread_attr;
107107
#endif
108108
union sigval sigev_value;
109109
int sigev_notify;
110110
int sigev_signo;
111-
} sigevent_t;
111+
};
112112
#define _SIGEVENT_DECLARED
113113
#define __sigevent_defined
114114
#endif

0 commit comments

Comments
 (0)