X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Ffdopen.m4;h=74d1649f53e4d613155e1c79be2a27d5aa7a9bcb;hb=868c538becccc66706826fc99b1c10244f72579e;hp=9ca9d2aca62d42e581d3b28618da4ff883d8af8d;hpb=1602f0afed21be664fcf5c42d59db07cc22c56d6;p=gnulib.git diff --git a/m4/fdopen.m4 b/m4/fdopen.m4 index 9ca9d2aca..74d1649f5 100644 --- a/m4/fdopen.m4 +++ b/m4/fdopen.m4 @@ -1,5 +1,5 @@ -# fdopen.m4 serial 2 -dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. +# fdopen.m4 serial 3 +dnl Copyright (C) 2011-2013 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. @@ -25,10 +25,8 @@ main (void) FILE *fp; errno = 0; fp = fdopen (-1, "r"); - if (fp != NULL) + if (fp == NULL && errno == 0) return 1; - if (errno == 0) - return 2; return 0; }]])], [gl_cv_func_fdopen_works=yes],