+2015-08-19 Joseph Myers <joseph@codesourcery.com>
+
+ * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
+ conditional to [defined UTMPX || _HAVE_UT_TYPE].
+ [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
+ UTMPX || _HAVE_UT_TV].
+ [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
+ UTMPX || _HAVE_UT_TV - 0].
+
2015-08-18 Joseph Myers <joseph@codesourcery.com>
* sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
#endif
-#if _HAVE_UT_TYPE || defined UTMPX
+#if defined UTMPX || _HAVE_UT_TYPE
/* Prototype for our test function. */
static int do_test (int argc, char *argv[]);
struct utmp entry[] =
{
-#if _HAVE_UT_TV || defined UTMPX
+#if defined UTMPX || _HAVE_UT_TV
#define UT(a) .ut_tv = { .tv_sec = (a)}
#else
#define UT(a) .ut_time = (a)
entry[n].ut_pid = (entry_pid += 27);
entry[n].ut_type = USER_PROCESS;
strncpy (entry[n].ut_user, user, sizeof (entry[n].ut_user));
-#if _HAVE_UT_TV - 0 || defined UTMPX
+#if defined UTMPX || _HAVE_UT_TV - 0
entry[n].ut_tv.tv_sec = (entry_time += 1000);
#else
entry[n].ut_time = (entry_time += 1000);
{
entry[n].ut_type = DEAD_PROCESS;
strncpy (entry[n].ut_user, "", sizeof (entry[n].ut_user));
-#if _HAVE_UT_TV - 0 || defined UTMPX
+#if defined UTMPX || _HAVE_UT_TV - 0
entry[n].ut_tv.tv_sec = (entry_time += 1000);
#else
entry[n].ut_time = (entry_time += 1000);