mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-13 04:29:09 +08:00
Define it to be UINT16_MAX, since the pckt_len member of af_unix_pkt_hdr_t is of type uint16_t. Previously it was 65536 (== UINT16_MAX + 1), which is 0 when cast to uint16_t. So an attempt to write a packet of size MAX_AF_PKT_LEN actually wrote 0 bytes.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cygwin documentation is available on the net at https://cygwin.com You might especially be interested in https://cygwin.com/faq/faq.html#faq.programming.building-cygwin