X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fusers.c;h=139c97659a974701c2f69051c4d8fb93e78fc833;hb=54729cd0ead843097381b5fcfec32621b43c45b8;hp=40ffece1fef537342338bc26ccf467cdeba7dac0;hpb=2233e6a537fb0a197881a17779503b8279125381;p=collectd.git diff --git a/src/users.c b/src/users.c index 40ffece1..139c9765 100644 --- a/src/users.c +++ b/src/users.c @@ -40,9 +40,6 @@ #elif HAVE_UTMP_H # include /* #endif HAVE_UTMP_H */ - -#else -# error "No applicable input method." #endif static void users_submit (gauge_t value) @@ -102,7 +99,7 @@ static int users_read (void) #elif HAVE_LIBSTATGRAB sg_user_stats *us; -# if HAVE_LIBSTATGRAB_GET_USER_STATS_ARG +# if HAVE_LIBSTATGRAB_0_90 size_t num_entries; us = sg_get_user_stats (&num_entries); # else @@ -112,7 +109,7 @@ static int users_read (void) return (-1); users_submit ((gauge_t) -# if HAVE_LIBSTATGRAB_GET_USER_STATS_ARG +# if HAVE_LIBSTATGRAB_0_90 num_entries); # else us->num_entries);