Mercurial > hg > octave-lojdl > gnulib-hg
changeset 11714:f33d1c9d5f8f
error: fix mingw build
* lib/error.c (error, error_at_line): Avoid fcntl on mingw.
Reported by Bruno Haible.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Sat, 18 Jul 2009 07:58:57 -0600 |
parents | 2b42a598bba2 |
children | 5b2f6ef69b28 |
files | ChangeLog lib/error.c |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2009-07-18 Eric Blake <ebb9@byu.net> + error: fix mingw build + * lib/error.c (error, error_at_line): Avoid fcntl on mingw. + Reported by Bruno Haible. + error: avoid undefined use of stdout * lib/error.c (error, error_at_line): Check that fd 1 is open before flushing stdout. Avoids a crash on cygwin when libsigsegv
--- a/lib/error.c +++ b/lib/error.c @@ -238,7 +238,7 @@ 0); #endif -#if !_LIBC +#if !_LIBC && defined F_GETFL /* POSIX states that fflush (stdout) after fclose is unspecified; it is safe in glibc, but not on all other platforms. fflush (NULL) is always defined, but too draconian. */ @@ -303,7 +303,7 @@ 0); #endif -#if !_LIBC +#if !_LIBC && defined F_GETFL /* POSIX states that fflush (stdout) after fclose is unspecified; it is safe in glibc, but not on all other platforms. fflush (NULL) is always defined, but too draconian. */