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

Fix some build issues with musl as libc
This commit is contained in:
Tim Stack 2018-04-27 07:38:38 -07:00 committed by GitHub
commit a8d675344f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -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");

View File

@ -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;