diff options
Diffstat (limited to 'util/spkmodem_recv')
-rw-r--r-- | util/spkmodem_recv/spkmodem-recv.c | 5 |
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': |