-/* $OpenBSD: midiplay.c,v 1.20 2018/07/20 21:44:41 mestre Exp $ */
+/* $OpenBSD: midiplay.c,v 1.21 2018/07/20 21:47:07 mestre Exp $ */
/* $NetBSD: midiplay.c,v 1.8 1998/11/25 22:17:07 augustss Exp $ */
/*
if (setitimer(ITIMER_REAL, &it, NULL) < 0)
err(1, "setitimer");
+ if (example || argc == 0) {
+ if (pledge("stdio", NULL) == -1)
+ err(1, "pledge");
+ } else {
+ if (pledge("stdio rpath", NULL) == -1)
+ err(1, "pledge");
+ }
+
if (example)
playdata(sample, sizeof sample, "<Gubben Noa>");
else if (argc == 0)