fixes check_users build on OpenBSD (without utmpx)

This commit is contained in:
Stuart Henderson 2025-09-26 12:51:42 +01:00
parent 92f37f90c3
commit 5fb0c08cec
2 changed files with 1 additions and 3 deletions

View file

@ -51,8 +51,6 @@ const char *email = "devel@monitoring-plugins.org";
# define ERROR -1
#elif HAVE_UTMPX_H
# include <utmpx.h>
#else
# include "popen.h"
#endif
#ifdef HAVE_LIBSYSTEMD

View file

@ -113,8 +113,8 @@ get_num_of_users_wrapper get_num_of_users_utmp() {
# ifndef HAVE_UTMPX_H
// Fall back option here for the others (probably still not on windows)
# include "../popen.h"
# include "../common.h"
# include "../popen.h"
# include "../utils.h"
get_num_of_users_wrapper get_num_of_users_who_command() {