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

16 lines
259 B
Diff
Raw Normal View History

2022-09-06 16:05:43 +02:00
--- 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) {