0008-fix-undeclared-UT_LINESIZE.patch 820 Bytes
Newer Older
1 2 3 4 5
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

6 7
Fix the following error:

8 9
	broadcast.c:41:21: error: '__UT_LINESIZE' undeclared (first use in this function); did you mean 'UT_LINESIZE'?
	 #define UT_LINESIZE __UT_LINESIZE
10 11 12
                          ^~~~~~~~~~

Constant UT_LINESIZE is defined in <utmp.h> provided by musl.
13 14 15
---
 src/rc/broadcast.c | 1 +
 1 file changed, 1 insertion(+)
16

17 18
diff --git a/src/rc/broadcast.c b/src/rc/broadcast.c
index 47c093ce..4877fb74 100644
19 20 21 22 23 24 25 26 27 28
--- 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>