Skip to content

Commit

Permalink
include: posix: sys/socket.h: Export MSG_* constants.
Browse files Browse the repository at this point in the history
As expected to be provided by this header by POSIX applications.

Signed-off-by: Paul Sokolovsky <[email protected]>
  • Loading branch information
pfalcon authored and ioannisg committed Aug 27, 2019
1 parent 0049c52 commit 95192d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/posix/sys/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 95192d4

Please sign in to comment.