From 95192d41fbf36106b1f3f9d7fb050d1fcabbec5b Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 21 Aug 2019 15:30:51 +0300 Subject: [PATCH] include: posix: sys/socket.h: Export MSG_* constants. As expected to be provided by this header by POSIX applications. Signed-off-by: Paul Sokolovsky --- include/posix/sys/socket.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/posix/sys/socket.h b/include/posix/sys/socket.h index 805ac08a1ca..11e6e2c5b59 100644 --- a/include/posix/sys/socket.h +++ b/include/posix/sys/socket.h @@ -22,6 +22,9 @@ static inline int socket(int family, int type, int proto) #define SHUT_WR ZSOCK_SHUT_WR #define SHUT_RDWR ZSOCK_SHUT_RDWR +#define MSG_PEEK ZSOCK_MSG_PEEK +#define MSG_DONTWAIT ZSOCK_MSG_DONTWAIT + static inline int shutdown(int sock, int how) { return zsock_shutdown(sock, how);