aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/0008-fix-undeclared-UT_LINESIZE.patch
blob: a61f0c6c7feb8080e6922886f5a905a20adf1912 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From e7a8d2d5f988d6a9688b7359f62209b6ed296c64 Mon Sep 17 00:00:00 2001
From: Jakub Jirutka <jakub@jirutka.cz>
Date: Mon, 12 Nov 2018 18:41:32 +0100
Subject: [PATCH] Fix undeclared UT_LINESIZE

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.
---
 src/rc/broadcast.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/rc/broadcast.c b/src/rc/broadcast.c
index 47c093ce..4877fb74 100644
--- 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>