Skip to content

Commit 71f12d7

Browse files
committed
tests: net: socketpair: explicit fcntl path on native_posix
Previously, `socketpair()` tests had pulled in the native `fcntl()` implementation instead of using the Zephyr version when being run under `native_posix_64`. Signed-off-by: Christopher Friedt <[email protected]>
1 parent 0b7a335 commit 71f12d7

File tree

1 file changed

+1
-7
lines changed
  • tests/net/socket/socketpair/src

1 file changed

+1
-7
lines changed

tests/net/socket/socketpair/src/_main.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,10 @@
1212

1313
#include <zephyr/logging/log.h>
1414
#include <zephyr/net/socket.h>
15+
#include <zephyr/posix/fcntl.h>
1516
#include <zephyr/sys/util.h>
1617
#include <zephyr/ztest.h>
1718

18-
#ifdef CONFIG_ARCH_POSIX
19-
#include <fcntl.h>
20-
#else
21-
#include <zephyr/posix/fcntl.h>
22-
#include <zephyr/posix/unistd.h>
23-
#endif
24-
2519
LOG_MODULE_DECLARE(net_test, CONFIG_NET_SOCKETS_LOG_LEVEL);
2620

2721
extern struct k_work_q test_socketpair_work_q;

0 commit comments

Comments
 (0)