Skip to contentSkip to conversation

sysvinit: fix compilation error against musl

PATCH New Dagg Stompler 3 participants 3 messages Aug 13, 2017 – Sep 5, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sysvinit: fix compilation error against musl

---
 .../0002-musl_fix_compilation_errors.patch         | 38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 package/sysvinit/0002-musl_fix_compilation_errors.patch
package/sysvinit/0002-musl_fix_compilation_errors.patch new file +38 -0
new file mode 100644
index 0000000000..76b6ced894
@@ -0,0 +1,38 @@
+fix compilation errors when compiling against must libc.
+
+Signed-off-by: Dagg Stompler <[email protected]>
+
+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>
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 sysvinit: fix compilation error against musl

Hello,

Quoted 5 lines · Dagg Stompler
---
 .../0002-musl_fix_compilation_errors.patch         | 38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 package/sysvinit/0002-musl_fix_compilation_errors.patch

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com