summaryrefslogtreecommitdiff
path: root/util/spkmodem_recv/spkmodem-recv.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/spkmodem_recv/spkmodem-recv.c')
-rw-r--r--util/spkmodem_recv/spkmodem-recv.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/spkmodem_recv/spkmodem-recv.c b/util/spkmodem_recv/spkmodem-recv.c
index efc690ba..30e13d8a 100644
--- a/util/spkmodem_recv/spkmodem-recv.c
+++ b/util/spkmodem_recv/spkmodem-recv.c
@@ -36,6 +36,11 @@ main(int argc, char *argv[])
{
int c;
+#ifdef HAVE_PLEDGE
+ if (pledge("stdio", NULL) == -1)
+ err(errno, "pledge");
+#endif
+
while ((c = getopt(argc, argv, "u")) != -1) {
switch (c) {
case 'u':