mirror of
https://github.com/tstack/lnav
synced 2024-11-19 15:25:34 +00:00
Merge pull request #512 from MonokelPinguin/fix-musl-build-issues
Fix some build issues with musl as libc
This commit is contained in:
commit
a8d675344f
@ -159,7 +159,6 @@ void grep_proc::child_loop(void)
|
|||||||
char outbuf[BUFSIZ * 2];
|
char outbuf[BUFSIZ * 2];
|
||||||
string line_value;
|
string line_value;
|
||||||
|
|
||||||
*stdout = *(fdopen(STDOUT_FILENO, "w"));
|
|
||||||
/* Make sure buffering is on, not sure of the state in the parent. */
|
/* Make sure buffering is on, not sure of the state in the parent. */
|
||||||
if (setvbuf(stdout, outbuf, _IOFBF, BUFSIZ * 2) < 0) {
|
if (setvbuf(stdout, outbuf, _IOFBF, BUFSIZ * 2) < 0) {
|
||||||
perror("setvbuf");
|
perror("setvbuf");
|
||||||
|
@ -1886,7 +1886,7 @@ static void handle_key(int ch) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case CEOF:
|
case CTRL('d'):
|
||||||
case KEY_RESIZE:
|
case KEY_RESIZE:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -2416,7 +2416,7 @@ static void looper(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case CEOF:
|
case CTRL('d'):
|
||||||
case KEY_RESIZE:
|
case KEY_RESIZE:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user