Skip to content

Commit c31beae

Browse files
committed
Revert "[noup] pull in standard headers for POSIX types and functions"
This reverts commit ab7630c. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
1 parent 0e56c19 commit c31beae

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/utils/includes.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@
4747

4848
#if defined(__ZEPHYR__)
4949
#include <strings.h>
50-
#if defined(CONFIG_POSIX_SYSTEM_INTERFACES)
51-
#include <arpa/inet.h>
52-
#include <sys/select.h>
53-
#include <sys/socket.h>
54-
#include <unistd.h>
55-
#else /* defined(CONFIG_POSIX_SYSTEM_INTERFACES) */
50+
#if defined(CONFIG_POSIX_API)
51+
#include <zephyr/posix/arpa/inet.h>
52+
#include <zephyr/posix/sys/select.h>
53+
#include <zephyr/posix/sys/socket.h>
54+
#include <zephyr/posix/unistd.h>
55+
#else /* defined(CONFIG_POSIX_API) */
5656
#include <zephyr/net/socket.h>
5757
#include <zephyr/net/socket_select.h>
5858
#include <zephyr/net/net_ip.h>
59-
#endif /* defined(CONFIG_POSIX_SYSTEM_INTERFACES) */
59+
#endif /* defined(CONFIG_POSIX_API) */
6060
#include <zephyr/shell/shell.h>
6161

6262
#define signal(a, b) (void)(b)

src/utils/os_zephyr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
*/
77

88
#include <time.h>
9-
#include <sys/time.h>
109

10+
#include <zephyr/posix/sys/time.h>
1111
#include <zephyr/random/random.h>
1212

1313
#include "includes.h"

0 commit comments

Comments
 (0)