X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fapache.c;h=2365d1ff15f344f53f8992129fa87dab96880da9;hb=2a7cae256f87f851aeaa0936a3e177bc11ee58f9;hp=573a116a215bdeabc0e52feb8e1ca44c11970687;hpb=721f8d81910c71154aba9ff8d243db52bfb584ed;p=collectd.git diff --git a/src/apache.c b/src/apache.c index 573a116a..2365d1ff 100644 --- a/src/apache.c +++ b/src/apache.c @@ -1,6 +1,6 @@ /** * collectd - src/apache.c - * Copyright (C) 2006 Florian octo Forster + * Copyright (C) 2006,2007 Florian octo Forster * Copyright (C) 2007 Florent EppO Monbillard * * This program is free software; you can redistribute it and/or modify it @@ -27,14 +27,8 @@ #include "plugin.h" #include "configfile.h" -#if HAVE_LIBCURL && HAVE_CURL_CURL_H -# define APACHE_HAVE_READ 1 -# include -#else -# define APACHE_HAVE_READ 0 -#endif +#include -#if APACHE_HAVE_READ static char *url = NULL; static char *user = NULL; static char *pass = NULL; @@ -309,14 +303,11 @@ static int apache_read (void) return (0); } /* int apache_read */ -#endif /* APACHE_HAVE_READ */ void module_register (void) { -#if APACHE_HAVE_READ plugin_register_config ("apache", config, config_keys, config_keys_num); plugin_register_init ("apache", init); plugin_register_read ("apache", apache_read); -#endif } /* void module_register */