Merge pull request #512 from MonokelPinguin/fix-musl-build-issues

Fix some build issues with musl as libc
pull/524/head
Tim Stack 7 years ago committed by GitHub
commit a8d675344f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -159,7 +159,6 @@ void grep_proc::child_loop(void)
char outbuf[BUFSIZ * 2];
string line_value;
*stdout = *(fdopen(STDOUT_FILENO, "w"));
/* Make sure buffering is on, not sure of the state in the parent. */
if (setvbuf(stdout, outbuf, _IOFBF, BUFSIZ * 2) < 0) {
perror("setvbuf");

@ -1886,7 +1886,7 @@ static void handle_key(int ch) {
}
switch (ch) {
case CEOF:
case CTRL('d'):
case KEY_RESIZE:
break;
default:
@ -2416,7 +2416,7 @@ static void looper(void)
}
switch (ch) {
case CEOF:
case CTRL('d'):
case KEY_RESIZE:
break;

Loading…
Cancel
Save