diff --git a/include/zephyr/posix/posix_types.h b/include/zephyr/posix/posix_types.h index ca8023be831..feb3d9bcbb2 100644 --- a/include/zephyr/posix/posix_types.h +++ b/include/zephyr/posix/posix_types.h @@ -11,18 +11,6 @@ #include #endif -#if !defined(_CLOCK_T_DECLARED) && !defined(__clock_t_defined) -typedef unsigned long clock_t; -#define _CLOCK_T_DECLARED -#define __clock_t_defined -#endif - -#if !defined(_CLOCKID_T_DECLARED) && !defined(__clockid_t_defined) -typedef unsigned long clockid_t; -#define _CLOCKID_T_DECLARED -#define __clockid_t_defined -#endif - #ifdef CONFIG_NEWLIB_LIBC #include #endif diff --git a/include/zephyr/posix/sys/select.h b/include/zephyr/posix/sys/select.h index 51eb11287ea..ef3e0f5674e 100644 --- a/include/zephyr/posix/sys/select.h +++ b/include/zephyr/posix/sys/select.h @@ -6,8 +6,6 @@ #ifndef ZEPHYR_INCLUDE_POSIX_SYS_SELECT_H_ #define ZEPHYR_INCLUDE_POSIX_SYS_SELECT_H_ -#include "posix_types.h" - #include #ifdef __cplusplus diff --git a/tests/posix/net/CMakeLists.txt b/tests/posix/net/CMakeLists.txt index 9f1e311355a..80433bbd096 100644 --- a/tests/posix/net/CMakeLists.txt +++ b/tests/posix/net/CMakeLists.txt @@ -7,5 +7,3 @@ project(posix_net) FILE(GLOB app_sources src/*.c) target_sources(app PRIVATE ${app_sources}) - -target_compile_options(app PRIVATE -U_POSIX_C_SOURCE -D_POSIX_C_SOURCE=200809L)