2 # Some platforms define EWOULDBLOCK == EAGAIN, causing our switch for error
3 # codes to be illegal (POSIX.1-2001 allows both return codes from recv, so
4 # we need to test both if they differ...)
6 AC_DEFUN([DETECT_EAGAIN],
8 AC_CACHE_CHECK([if EWOULDBLOCK == EAGAIN],[av_cv_eagain_ewouldblock],
23 [ av_cv_eagain_ewouldblock=no ],
24 [ av_cv_eagain_ewouldblock=yes ])
26 AS_IF([test "x$ac_cv_eagain_ewouldblock" = "xyes"],[
27 AC_DEFINE([USE_EAGAIN], [1], [Define to true if you need to test for eagain])])