X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fopen.m4;h=690cc648d0730279909b28b14f9c504a5ca33999;hb=f00bf3ddf06e944b995c913d6c6935cf14eec74b;hp=9b22e9d3a96398f617eeb28fa959ee6a2d793327;hpb=a4f38ec6be21630e9640cf8ead742c3a8d733fc2;p=gnulib.git diff --git a/m4/open.m4 b/m4/open.m4 index 9b22e9d3a..690cc648d 100644 --- a/m4/open.m4 +++ b/m4/open.m4 @@ -1,5 +1,5 @@ -# open.m4 serial 11 -dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. +# open.m4 serial 12 +dnl Copyright (C) 2007-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, dnl with or without modifications, as long as this notice is preserved. @@ -62,6 +62,15 @@ changequote([,])dnl esac ;; esac + dnl Replace open() for supporting the gnulib-defined O_NONBLOCK flag. + m4_ifdef([gl_NONBLOCKING_IO], [ + if test $REPLACE_OPEN = 0; then + gl_NONBLOCKING_IO + if test $gl_cv_have_open_O_NONBLOCK != yes; then + gl_REPLACE_OPEN + fi + fi + ]) ]) AC_DEFUN([gl_REPLACE_OPEN],