Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | From d62a5862e26ed3fc58d789efe9c40ca6c911d36b Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 31 Aug 2015 22:35:31 +0000 |
| 4 | Subject: [PATCH] Fix build issus surfaced due to musl |
| 5 | |
| 6 | src/getsdir.h:28:14: error: 'MAXNAMLEN' undeclared here (not in a function) |
| 7 | char fname[MAXNAMLEN + 1]; /* filename + terminating null */ |
| 8 | |
| 9 | src/dial.c:352:22: error: 'KIOCSOUND' undeclared (first use in this function) |
| 10 | | ioctl(consolefd, KIOCSOUND, k); |
| 11 | |
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 13 | --- |
| 14 | Upstream-Status: Pending |
| 15 | |
| 16 | src/dial.c | 2 +- |
| 17 | src/getsdir.c | 1 + |
| 18 | 2 files changed, 2 insertions(+), 1 deletion(-) |
| 19 | |
| 20 | diff --git a/src/dial.c b/src/dial.c |
| 21 | index a90c1d2..bf02574 100644 |
| 22 | --- a/src/dial.c |
| 23 | +++ b/src/dial.c |
| 24 | @@ -39,7 +39,7 @@ |
| 25 | #include "intl.h" |
| 26 | |
| 27 | #ifdef VC_MUSIC |
| 28 | -# if defined(__GLIBC__) |
| 29 | +# if defined(__GLIBC__) || defined(__linux__) |
| 30 | # include <sys/ioctl.h> |
| 31 | # include <sys/kd.h> |
| 32 | # include <sys/time.h> |
| 33 | diff --git a/src/getsdir.c b/src/getsdir.c |
| 34 | index 2195b27..b61a361 100644 |
| 35 | --- a/src/getsdir.c |
| 36 | +++ b/src/getsdir.c |
| 37 | @@ -30,6 +30,7 @@ |
| 38 | #include <string.h> |
| 39 | #include <sys/types.h> |
| 40 | #include <sys/stat.h> |
| 41 | +#include <sys/param.h> |
| 42 | #include <errno.h> |
| 43 | |
| 44 | #include "getsdir.h" |
| 45 | -- |
| 46 | 2.5.1 |
| 47 | |