diff options
-rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -847,6 +847,7 @@ process_onefile(struct mparse *mp, struct manpage *resp, int startdir, outst->use_pager = 0; outst->tag_files = term_tag_init(conf->output.outfilename, conf->output.tagfilename); +#if HAVE_PLEDGE if ((conf->output.outfilename != NULL || conf->output.tagfilename != NULL) && pledge("stdio rpath cpath", NULL) == -1) { @@ -854,6 +855,7 @@ process_onefile(struct mparse *mp, struct manpage *resp, int startdir, "%s", strerror(errno)); exit(mandoc_msg_getrc()); } +#endif } if (outst->had_output && outst->outtype <= OUTT_UTF8) { if (outst->outdata == NULL) |