summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/report-layout.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/report-layout.c b/src/report-layout.c
index d01e6b3..e5af386 100644
--- a/src/report-layout.c
+++ b/src/report-layout.c
@@ -18,6 +18,7 @@
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
+#include <stdio_ext.h>
#include <iou.h>
#include <thunk.h>
@@ -116,6 +117,8 @@ THUNK_DEFINE_STATIC(per_journal, iou_t *, iou, journal_t **, journal_iter)
if (!f)
return -errno;
+ __fsetlocking(f, FSETLOCKING_BYCALLER);
+
fprintf(f, "Layout for \"%s\"\n", (*journal_iter)->name);
fprintf(f,
"Legend:\n"
© All Rights Reserved