aboutsummaryrefslogtreecommitdiff
path: root/package/sysvinit
diff options
context:
space:
mode:
authorGravatar Dagg Stompler <daggs@gmx.com>2017-08-13 20:35:59 +0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-08-14 22:19:46 +0200
commit7ec15db9db138c71133413fbc9f354de9b74e309 (patch)
treeab99369db93ee982f7f9c6d759ac9d1cb9fc3c28 /package/sysvinit
parent0ac915e207270ca51c0c1aea9ec7d3e2c74be6eb (diff)
downloadbuildroot-7ec15db9db138c71133413fbc9f354de9b74e309.tar.gz
buildroot-7ec15db9db138c71133413fbc9f354de9b74e309.tar.bz2
sysvinit: fix compilation error against musl
This commit adds a patch to the sysvinit package that fixes various build issues against musl due to missing header includes. Signed-off-by: Dagg Stompler <daggs@gmx.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/sysvinit')
-rw-r--r--package/sysvinit/0002-musl-fix-compilation-errors.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/package/sysvinit/0002-musl-fix-compilation-errors.patch b/package/sysvinit/0002-musl-fix-compilation-errors.patch
new file mode 100644
index 0000000000..5dcdecf72b
--- /dev/null
+++ b/package/sysvinit/0002-musl-fix-compilation-errors.patch
@@ -0,0 +1,38 @@
+Fix various compilation errors when compiling against must libc
+
+Signed-off-by: Dagg Stompler <daggs@gmx.com>
+
+diff -Nupr a/src/init.c b/src/init.c
+--- a/src/init.c 2017-08-13 18:44:27.000000000 +0300
++++ b/src/init.c 2017-08-13 18:34:45.000000000 +0300
+@@ -37,6 +37,7 @@
+ #include <sys/kd.h>
+ #endif
+ #include <sys/resource.h>
++#include <sys/ttydefaults.h>
+ #include <stdlib.h>
+ #include <unistd.h>
+ #include <errno.h>
+diff -Nupr a/src/init.h b/src/init.h
+--- a/src/init.h 2017-08-13 19:35:46.000000000 +0300
++++ b/src/init.h 2017-08-13 19:36:01.000000000 +0300
+@@ -22,6 +22,8 @@
+ *
+ */
+
++#include <time.h>
++
+ /* Standard configuration */
+ #define CHANGE_WAIT 0 /* Change runlevel while
+ waiting for a process to exit? */
+diff -Nupr a/src/mountpoint.c b/src/mountpoint.c
+--- a/src/mountpoint.c 2017-08-13 20:28:26.000000000 +0300
++++ b/src/mountpoint.c 2017-08-13 20:28:40.000000000 +0300
+@@ -24,6 +24,7 @@
+ */
+
+ #include <sys/stat.h>
++#include <sys/types.h>
+ #include <unistd.h>
+ #include <stdlib.h>
+ #include <string.h>