16 lines
259 B
Diff
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) {
|
||
|
|