Sha256: 319dca9fc726c9fd559196ad02d87a741b8e7a7bdb46f055bd962050fe8ebfed

Contents?: true

Size: 812 Bytes

Versions: 2

Compression:

Stored size: 812 Bytes

Contents

#
# Some platforms define EWOULDBLOCK == EAGAIN, causing our switch for error
# codes to be illegal (POSIX.1-2001 allows both return codes from recv, so
# we need to test both if they differ...)
#
AC_DEFUN([DETECT_EAGAIN],
[
    AC_CACHE_CHECK([if EWOULDBLOCK == EAGAIN],[av_cv_eagain_ewouldblock],
        [AC_TRY_COMPILE([
#include <errno.h>
                        ], [
int error = EAGAIN;
switch (error) 
{
  case EAGAIN:
  case EWOULDBLOCK:
       error = 1;
       break;
  default:
       error = 0;
}
                        ],
                        [ av_cv_eagain_ewouldblock=no ],
                        [ av_cv_eagain_ewouldblock=yes ])
        ])
    AS_IF([test "x$ac_cv_eagain_ewouldblock" = "xyes"],[
          AC_DEFINE([USE_EAGAIN], [1], [Define to true if you need to test for eagain])])
])

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
couchbase-memcached-1.2.9 ext/libmemcached-0.50/m4/eagain.m4
couchbase-memcached-1.2.8 ext/libmemcached-0.50/m4/eagain.m4