diff options
author | Eric Blake <ebb9@byu.net> | 2009-07-18 07:58:57 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-07-18 07:58:57 -0600 |
commit | 68a03407e9363df6023b715b6dad8f5d043450cd (patch) | |
tree | 389352871f26edd336ececb528e260b610bfc663 /lib/error.c | |
parent | d19ab0454ad81cd702f17864f082aefcbea6687a (diff) | |
download | gnulib-68a03407e9363df6023b715b6dad8f5d043450cd.tar.gz |
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>
Diffstat (limited to 'lib/error.c')
-rw-r--r-- | lib/error.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/error.c b/lib/error.c index f2d45d993b..af2287b271 100644 --- a/lib/error.c +++ b/lib/error.c @@ -238,7 +238,7 @@ error (int status, int errnum, const char *message, ...) 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 @@ error_at_line (int status, int errnum, const char *file_name, 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. */ |