Code

Changed `configure.in' and `src/Makefile.am' so the plugins are NOT linked against...
[collectd.git] / src / users.c
index e2b741c9393f96b44ec8aa17b5132b249e22b8b8..5fe1b7114fdd54af590316bd549b0223d885a9ba 100644 (file)
@@ -60,6 +60,7 @@ static void users_write (char *host, char *inst, char *val)
        return;
 } /* static void users_write(char *host, char *inst, char *val) */
 
+#if USERS_HAVE_READ
 /* I don't like this temporary macro definition - well it's used everywhere
    else in the collectd-sources, so I will just stick with it...  */
 #define BUFSIZE 256
@@ -78,7 +79,6 @@ static void users_submit (unsigned int users)
 } /* static void users_submit(unsigned int users) */
 #undef BUFSIZE
 
-#if USERS_HAVE_READ
 static void users_read (void)
 {
 #if HAVE_GETUTXENT