summaryrefslogtreecommitdiff
path: root/lib/closeout.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/closeout.c')
-rw-r--r--lib/closeout.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/closeout.c b/lib/closeout.c
index 3c7bed9c3..16e6f9f67 100644
--- a/lib/closeout.c
+++ b/lib/closeout.c
@@ -32,9 +32,12 @@
#include "error.h"
#include "exitfail.h"
#include "quotearg.h"
-#include "unlocked-io.h"
#include "__fpending.h"
+#if USE_UNLOCKED_IO
+# include "unlocked-io.h"
+#endif
+
static const char *file_name;
/* Set the file name to be reported in the event an error is detected