Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Date: Wed,  1 Jun 2016 17:09:28 +0900
From: Masanori Ogino <masanori.ogino@...il.com>
To: musl@...ts.openwall.com
Cc: Masanori Ogino <masanori.ogino@...il.com>
Subject: [PATCH] Add _PATH_{U,W}TMPX macros.

Since /[uw]tmpx?/ are not supported by musl, this change just suppresses
some compilation errors with applications relying on them.

Signed-off-by: Masanori Ogino <masanori.ogino@...il.com>
---
 include/utmp.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/utmp.h b/include/utmp.h
index 48a400d..114cdda 100644
--- a/include/utmp.h
+++ b/include/utmp.h
@@ -40,6 +40,8 @@ int login_tty(int);
 #define _PATH_UTMP "/dev/null/utmp"
 #define _PATH_WTMP "/dev/null/wtmp"
 
+#define _PATH_UTMPX _PATH_UTMP
+#define _PATH_WTMPX _PATH_WTMP
 #define UTMP_FILE _PATH_UTMP
 #define WTMP_FILE _PATH_WTMP
 #define UTMP_FILENAME _PATH_UTMP
-- 
2.7.3

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.