net: sntp: Allow to build for CONFIG_POSIX_API.
Use POSIX headers in this case. Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
parent
7c49ac6e0a
commit
a7bb2850f7
|
@ -8,7 +8,13 @@
|
|||
#ifndef ZEPHYR_INCLUDE_NET_SNTP_H_
|
||||
#define ZEPHYR_INCLUDE_NET_SNTP_H_
|
||||
|
||||
#ifdef CONFIG_NET_SOCKETS_POSIX_NAMES
|
||||
#include <net/socket.h>
|
||||
#else
|
||||
#include <posix/sys/socket.h>
|
||||
#include <posix/unistd.h>
|
||||
#include <posix/poll.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
Loading…
Reference in a new issue