Merge pull request #2157 from sthen/fix_without_utmpx

fixes check_users build on OpenBSD (without utmpx)
This commit is contained in:
Lorenz Kästle 2025-09-26 18:11:47 +02:00 committed by GitHub
commit a516b5e96e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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() {