1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 02:36:16 +02:00

(EBADF): Fail with `#error ...' if it's not defined,

asking the user to report the problem.
This commit is contained in:
Jim Meyering
2004-11-22 14:24:04 +00:00
parent 9f0568e81e
commit b2a9a7f986

View File

@@ -39,6 +39,13 @@
# include "unlocked-io.h"
#endif
/* If EBADF is not defined then the code below can't possibly work --
we'll need to know what value errno is set to when fclose fails to
close an already-closed stream. Ask the user to report it. */
#ifndef EBADF
# error "EBADF is not defined: please report this to bug-gnulib@gnu.org"
#endif
static const char *file_name;
/* Set the file name to be reported in the event an error is detected