Added checks for `utmpx.h' and `getutxent' to the configure script
[collectd.git] / src / users.h
index 360c595..f8b9544 100644 (file)
 #include "config.h"
 
 #ifndef COLLECT_USERS
+#if defined(HAVE_UTMPX_H) && defined(HAVE_GETUTXENT)
 #define COLLECT_USERS 1
+#else
+#define COLLECT_USERS 0
+#endif
 #endif /* ! defined(COLLECT_USERS) */
 
 void users_init(void);