blob: fec67fdd3fd01a373512d190fdcb4eefb2d6c974 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001From d62a5862e26ed3fc58d789efe9c40ca6c911d36b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 31 Aug 2015 22:35:31 +0000
4Subject: [PATCH] Fix build issus surfaced due to musl
5
6src/getsdir.h:28:14: error: 'MAXNAMLEN' undeclared here (not in a function)
7 char fname[MAXNAMLEN + 1]; /* filename + terminating null */
8
9src/dial.c:352:22: error: 'KIOCSOUND' undeclared (first use in this function)
10| ioctl(consolefd, KIOCSOUND, k);
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14Upstream-Status: Pending
15
16 src/dial.c | 2 +-
17 src/getsdir.c | 1 +
18 2 files changed, 2 insertions(+), 1 deletion(-)
19
20diff --git a/src/dial.c b/src/dial.c
21index 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>
33diff --git a/src/getsdir.c b/src/getsdir.c
34index 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--
462.5.1
47