From 6f937c9ceaf67397189fd2e1275ff8eba264c801 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 17 Oct 2024 06:11:31 -0400 Subject: [PATCH] Revert "tests: posix: net: fix missing clock_t and clockid_t with newlib" This reverts commit 45b3010d74924b4a4b5a72b782abb73dcefe76f3. Issue introduced in #79884. Signed-off-by: Anas Nashif --- include/zephyr/posix/posix_types.h | 12 ------------ include/zephyr/posix/sys/select.h | 2 -- tests/posix/net/CMakeLists.txt | 2 -- 3 files changed, 16 deletions(-) diff --git a/include/zephyr/posix/posix_types.h b/include/zephyr/posix/posix_types.h index ca8023be831166..feb3d9bcbb230e 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 51eb11287ead27..ef3e0f5674ed59 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 9f1e311355a378..80433bbd0963a5 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)