*** ./src/bwping.c.ORIG Mon Jul 15 19:14:16 2019 --- ./src/bwping.c Mon Jul 15 19:15:02 2019 *************** *** 160,165 **** --- 160,169 ---- (*transmitted_number)++; } + #ifndef MSG_DONTWAIT + #define MSG_DONTWAIT MSG_NONBLOCK + #endif + static bool recv_ping(int sock, uint16_t ident, uint32_t *received_number, uint64_t *received_volume) { size_t hlen; *** ./src/bwping6.c.ORIG Mon Jul 15 19:14:20 2019 --- ./src/bwping6.c Mon Jul 15 19:15:34 2019 *************** *** 132,137 **** --- 132,141 ---- (*transmitted_number)++; } + #ifndef MSG_DONTWAIT + #define MSG_DONTWAIT MSG_NONBLOCK + #endif + static bool recv_ping(int sock, uint16_t ident, uint32_t *received_number, uint64_t *received_volume) { ssize_t res;