aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/0008-fix-undeclared-UT_LINESIZE.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-11-12 18:41:32 +0100
committerJakub Jirutka <jakub@jirutka.cz>2018-11-12 18:42:17 +0100
commit151e1484cbebe3b0824a90daea686a45f537a997 (patch)
tree772f41d4ff95be9cd50f2a2b2bd8b12f42ccaf11 /main/openrc/0008-fix-undeclared-UT_LINESIZE.patch
parentb33fba5ab4f30a203bb43681eb37704e52b3b596 (diff)
downloadaports-151e1484cbebe3b0824a90daea686a45f537a997.tar.bz2
aports-151e1484cbebe3b0824a90daea686a45f537a997.tar.xz
main/openrc: upgrade to 0.39.2
Diffstat (limited to 'main/openrc/0008-fix-undeclared-UT_LINESIZE.patch')
-rw-r--r--main/openrc/0008-fix-undeclared-UT_LINESIZE.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/main/openrc/0008-fix-undeclared-UT_LINESIZE.patch b/main/openrc/0008-fix-undeclared-UT_LINESIZE.patch
new file mode 100644
index 0000000000..da33a25a48
--- /dev/null
+++ b/main/openrc/0008-fix-undeclared-UT_LINESIZE.patch
@@ -0,0 +1,18 @@
+Fix the following error:
+
+ broadcast.c:41:21: error: '__UT_LINESIZE' undeclared (first use in this function); did you mean 'UT_LINESIZE'?
+ #define UT_LINESIZE __UT_LINESIZE
+ ^~~~~~~~~~
+
+Constant UT_LINESIZE is defined in <utmp.h> provided by musl.
+
+--- a/src/rc/broadcast.c
++++ b/src/rc/broadcast.c
+@@ -22,6 +22,7 @@
+ #include <time.h>
+ #include <unistd.h>
+ #include <stdio.h>
++#include <utmp.h>
+ #include <utmpx.h>
+ #include <pwd.h>
+ #include <fcntl.h>