build-sys: s/HAVE_UTMP/ENABLE_UTMP/
"Have" should be about the external environment and dependencies. Anything which is a pure yes/no choice should be "enable".
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@
|
||||
#define _SYSVINIT_FEATURE_ "-SYSVINIT"
|
||||
#endif
|
||||
|
||||
#if HAVE_UTMP
|
||||
#if ENABLE_UTMP
|
||||
#define _UTMP_FEATURE_ "+UTMP"
|
||||
#else
|
||||
#define _UTMP_FEATURE_ "-UTMP"
|
||||
|
||||
@@ -108,7 +108,7 @@ if conf.get('HAVE_ACL') == 1
|
||||
shared_sources += ['acl-util.c']
|
||||
endif
|
||||
|
||||
if conf.get('HAVE_UTMP') == 1
|
||||
if conf.get('ENABLE_UTMP') == 1
|
||||
shared_sources += ['utmp-wtmp.c']
|
||||
endif
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "time-util.h"
|
||||
#include "util.h"
|
||||
|
||||
#if HAVE_UTMP
|
||||
#if ENABLE_UTMP
|
||||
int utmp_get_runlevel(int *runlevel, int *previous);
|
||||
|
||||
int utmp_put_shutdown(void);
|
||||
@@ -42,7 +42,7 @@ int utmp_wall(
|
||||
bool (*match_tty)(const char *tty, void *userdata),
|
||||
void *userdata);
|
||||
|
||||
#else /* HAVE_UTMP */
|
||||
#else /* ENABLE_UTMP */
|
||||
|
||||
static inline int utmp_get_runlevel(int *runlevel, int *previous) {
|
||||
return -ESRCH;
|
||||
@@ -71,4 +71,4 @@ static inline int utmp_wall(
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* HAVE_UTMP */
|
||||
#endif /* ENABLE_UTMP */
|
||||
|
||||
Reference in New Issue
Block a user