Index: cli/vgmstream_cli.c
--- cli/vgmstream_cli.c.orig
+++ cli/vgmstream_cli.c
@@ -7,6 +7,7 @@
 #include <stdio.h>
 
 #include <getopt.h>
+#include <stdlib.h>
 
 #ifdef WIN32
 #include <io.h>
@@ -586,6 +587,10 @@ static bool convert_file(cli_config_t* cfg) {
         return true;
     }
 
+    if (pledge("stdio rpath wpath cpath", NULL) == -1) {
+        fprintf(stderr, "pledge\n");
+        return 1;
+    }
 
     /* main decode */
     write_file(vgmstream, cfg);
