diff options
Diffstat (limited to 'gl/m4/fdopen.m4')
-rw-r--r-- | gl/m4/fdopen.m4 | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gl/m4/fdopen.m4 b/gl/m4/fdopen.m4 index 9ca9d2aca6..74d1649f53 100644 --- a/gl/m4/fdopen.m4 +++ b/gl/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], |