summaryrefslogtreecommitdiff
path: root/sfeed_opml_import.c
diff options
context:
space:
mode:
Diffstat (limited to 'sfeed_opml_import.c')
-rw-r--r--sfeed_opml_import.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c
index fdee71a..c69986f 100644
--- a/sfeed_opml_import.c
+++ b/sfeed_opml_import.c
@@ -76,8 +76,10 @@ xml_handler_attrentity(XMLParser *p, const char *tag, size_t taglen,
int
main(void)
{
+#ifdef USE_PLEDGE
if (pledge("stdio", NULL) == -1)
err(1, "pledge");
+#endif
parser.xmlattr = xml_handler_attr;
parser.xmlattrentity = xml_handler_attrentity;