Skip to content

Commit

Permalink
Revert "tests: posix: net: fix missing clock_t and clockid_t with new…
Browse files Browse the repository at this point in the history
…lib"

This reverts commit 45b3010.

Issue introduced in #79884.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information
nashif committed Oct 17, 2024
1 parent 9d0486e commit 6f937c9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
12 changes: 0 additions & 12 deletions include/zephyr/posix/posix_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,6 @@
#include <sys/types.h>
#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 <sys/_pthreadtypes.h>
#endif
Expand Down
2 changes: 0 additions & 2 deletions include/zephyr/posix/sys/select.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
#ifndef ZEPHYR_INCLUDE_POSIX_SYS_SELECT_H_
#define ZEPHYR_INCLUDE_POSIX_SYS_SELECT_H_

#include "posix_types.h"

#include <zephyr/sys/fdtable.h>

#ifdef __cplusplus
Expand Down
2 changes: 0 additions & 2 deletions tests/posix/net/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 6f937c9

Please sign in to comment.