X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fnonblocking.m4;h=fd6faeea631d2647def06681957c348d17feb7a7;hb=d16d5a56e1c99790c2452c66906760ac1109d013;hp=8224626bef7a8d5414ffc9282ebe976599f02042;hpb=836e0457064eb3b0b21bd2d4954cbc428a6b6277;p=gnulib.git diff --git a/m4/nonblocking.m4 b/m4/nonblocking.m4 index 8224626be..fd6faeea6 100644 --- a/m4/nonblocking.m4 +++ b/m4/nonblocking.m4 @@ -1,4 +1,4 @@ -# nonblocking.m4 serial 1 +# nonblocking.m4 serial 2 dnl Copyright (C) 2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -6,6 +6,8 @@ dnl with or without modifications, as long as this notice is preserved. dnl Tests whether non-blocking I/O is natively supported by read(), write(). dnl Sets gl_cv_have_nonblocking. +dnl Also tests whether open() supports O_NONBLOCK. +dnl Sets gl_cv_have_open_O_NONBLOCK. AC_DEFUN([gl_NONBLOCKING_IO], [ dnl Use AC_REQUIRE here, so that the default behavior below is expanded @@ -20,4 +22,8 @@ AC_DEFUN([gl_NONBLOCKING_IO_BODY], mingw*) gl_cv_have_nonblocking=no ;; *) gl_cv_have_nonblocking=yes ;; esac + case "$host_os" in + mingw*) gl_cv_have_open_O_NONBLOCK=no ;; + *) gl_cv_have_open_O_NONBLOCK=yes ;; + esac ])