From 23bdcb4ad4ef19d99b729e5282fd15df6300a3b5 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 21 Dec 2014 00:26:40 +0000 Subject: So the non-portable MSG_DONTWAIT may alleviate the problem... might as well use it on architectures that support it. --- src/sysdeps/trymsgdontwait.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/sysdeps/trymsgdontwait.c (limited to 'src/sysdeps/trymsgdontwait.c') diff --git a/src/sysdeps/trymsgdontwait.c b/src/sysdeps/trymsgdontwait.c new file mode 100644 index 0000000..0c8ad15 --- /dev/null +++ b/src/sysdeps/trymsgdontwait.c @@ -0,0 +1,17 @@ +/* ISC license. */ + +#undef _POSIX_C_SOURCE +#undef _XOPEN_SOURCE + +#ifndef _XPG4_2 +# define _XPG4_2 +#endif + +#ifndef _BSD_SOURCE +#define _BSD_SOURCE +#endif + +#include +#include + +int value = MSG_DONTWAIT ; -- cgit v1.2.3