Skip to content

Commit 80a9b12

Browse files
tagunilnashif
authored andcommitted
include: posix: remove an unreachable clockid_t definition
The clockid_t definition in question is not reachable anymore because at least one of _CLOCKID_T_DECLARED and __clockid_t_defined macros is already defined by that point, always making the check fail. Signed-off-by: Ilya Tagunov <[email protected]>
1 parent 390a7f8 commit 80a9b12

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

include/zephyr/posix/posix_types.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@ typedef unsigned long useconds_t;
8484
#endif
8585

8686
/* time related attributes */
87-
#if !defined(CONFIG_NEWLIB_LIBC) && !defined(CONFIG_ARCMWDT_LIBC)
88-
#if !defined(__clockid_t_defined) && !defined(_CLOCKID_T_DECLARED)
89-
typedef uint32_t clockid_t;
90-
#endif
91-
#endif /* !CONFIG_NEWLIB_LIBC && !CONFIG_ARCMWDT_LIBC */
9287
#if !defined(__timer_t_defined) && !defined(_TIMER_T_DECLARED)
9388
typedef unsigned long timer_t;
9489
#endif

0 commit comments

Comments
 (0)