void-packages/srcpkgs/no-more-secrets/patches/fix-musl.patch

16 lines
259 B
Diff

--- a/src/nmstermio.c
+++ b/src/nmstermio.c
@@ -296,7 +296,11 @@
static int state = 1;
if (!isatty(STDIN_FILENO)) {
+#ifdef __GLIBC__
stdin = freopen("/dev/tty", "r", stdin);
+#else
+ freopen("/dev/tty", "r", stdin);
+#endif
}
if (s == 0) {