Skip to content

Commit 5e4ceac

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/zephyr/posix/posix_time.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ struct sigevent;
6161
/* struct timespec must be defined in the libc time.h */
6262
#else
6363
#if !defined(_TIMESPEC_DECLARED) && !defined(__timespec_defined)
64-
typedef struct {
64+
struct timespec {
6565
time_t tv_sec;
6666
long tv_nsec;
67-
} timespec_t;
67+
};
6868
#define _TIMESPEC_DECLARED
6969
#define __timespec_defined
7070
#endif

0 commit comments

Comments
 (0)