[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[screen-devel] [bug #45345] utmp.c requires utmp.h include under musl
From: |
anonymous |
Subject: |
[screen-devel] [bug #45345] utmp.c requires utmp.h include under musl |
Date: |
Sat, 20 Jun 2015 22:21:35 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Unix; en-US) AppleWebKit/537.15 (KHTML, like Gecko) Chrome/24.0.1295.0 Safari/537.15 Surf/0.6 |
Follow-up Comment #1, bug #45345 (project screen):
The relevant code (replacing getlogin()) is behind a BUGGYGETLOGIN. Is
this macro nowadays still relevant? acconfig.h says about this macro:
/*
* If ttyslot() breaks getlogin() by returning indexes to utmp entries
* of type DEAD_PROCESS, then our getlogin() replacement should be
* selected by defining BUGGYGETLOGIN.
*/
In contrast, we have in configure.in:
oldlibs="$LIBS"
LIBS="$LIBS -lelf"
AC_CHECKING(SVR4)
AC_TRY_LINK([#include <utmpx.h>
],,
[AC_CHECK_HEADER(dwarf.h, AC_DEFINE(SVR4) AC_DEFINE(BUGGYGETLOGIN),
[AC_CHECK_HEADER(elf.h, AC_DEFINE(SVR4) AC_DEFINE(BUGGYGETLOGIN))])]
,LIBS="$oldlibs")
So whether getlogin() will be replaced depends on whether libelf is
installed...
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45345>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/