diff options
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/include/cygwin/socket.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 9a3aa3e8c..1809c0dcc 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2012-08-01 Corinna Vinschen <corinna@vinschen.de> + * include/cygwin/socket.h (MSG_BCAST): Define. + (MSG_MCAST): Define. + +2012-08-01 Corinna Vinschen <corinna@vinschen.de> + * fhandler.h (fhandler_socket::recv_internal): Add bool parameter. Add regparm attribute. * fhandler_socket.cc (fhandler_socket::read): Call recv_internal with diff --git a/winsup/cygwin/include/cygwin/socket.h b/winsup/cygwin/include/cygwin/socket.h index 921172ecf..678b1031a 100644 --- a/winsup/cygwin/include/cygwin/socket.h +++ b/winsup/cygwin/include/cygwin/socket.h @@ -205,6 +205,9 @@ struct OLD_msghdr #define MSG_NOSIGNAL 0x20 /* Don't raise SIGPIPE */ #define MSG_TRUNC 0x0100 /* Normal data truncated */ #define MSG_CTRUNC 0x0200 /* Control data truncated */ +/* Windows-specific flag values returned by recvmsg. */ +#define MSG_BCAST 0x0400 /* Broadcast datagram */ +#define MSG_MCAST 0x0800 /* Multicast datagram */ /* Setsockoptions(2) level. Thanks to BSD these must match IPPROTO_xxx */ #define SOL_IP 0 |