chiark / gitweb /
shared/musl_missing.h: replace ifdef HAVE_UTMP with if ENABLE_UTMP
authormaxice8 <thinkabit.ukim@gmail.com>
Tue, 16 Jan 2018 10:23:17 +0000 (08:23 -0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 24 Jan 2018 12:22:41 +0000 (13:22 +0100)
now meson defines if the feature is enabled or not, check if the
feature is enabled

src/shared/musl_missing.h

index 6a6f1e037e78c3646f768650fbe03c617cac1b17..7f3ffafaff88f4f478017da7308065577391fcda 100644 (file)
@@ -86,7 +86,7 @@ typedef __compar_fn_t comparison_fn_t;
 #endif
 
 /* Make musl utmp/wtmp stubs visible if needed. */
-#ifdef HAVE_UTMP
+#if ENABLE_UTMP
 # include <paths.h>
 # include <utmp.h>
 # include <utmpx.h>
@@ -96,7 +96,7 @@ typedef __compar_fn_t comparison_fn_t;
 # if defined(_PATH_WTMP) && !defined(_PATH_WTMPX)
 #   define _PATH_WTMPX _PATH_WTMP
 # endif
-#endif // HAVE_UTMP
+#endif // ENABLE_UTMP
 
 #endif // !defined(__GLIBC__)