From 21fb7168e62542ec26e32061f2bf1539ceb60b95 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 15 Jun 2018 20:53:37 -0500 Subject: system/musl: fix lastlog.h with utmps --- system/musl/3001-make-real-lastlog-h.patch | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 system/musl/3001-make-real-lastlog-h.patch (limited to 'system/musl/3001-make-real-lastlog-h.patch') diff --git a/system/musl/3001-make-real-lastlog-h.patch b/system/musl/3001-make-real-lastlog-h.patch new file mode 100644 index 000000000..168ef882b --- /dev/null +++ b/system/musl/3001-make-real-lastlog-h.patch @@ -0,0 +1,30 @@ +Since we remove from musl for utmps support, we can't use the +included . + +This implements just the lastlog stuff from musl . + +--- musl-1.1.19/include/lastlog.h 2018-02-22 12:39:19.000000000 -0600 ++++ musl-1.1.19/include/lastlog.h 2018-06-15 20:04:54.428854473 -0500 +@@ -1 +1,21 @@ +-#include ++#ifndef _LASTLOG_H ++#define _LASTLOG_H ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ ++#define UT_HOSTSIZE 256 ++#define UT_LINESIZE 32 ++ ++struct lastlog { ++ time_t ll_time; ++ char ll_line[UT_LINESIZE]; ++ char ll_host[UT_HOSTSIZE]; ++}; ++ ++#ifdef __cplusplus ++} ++#endif ++ ++#endif -- cgit v1.2.3-60-g2f50