From: Florian Forster Date: Sat, 31 Mar 2007 06:15:43 +0000 (+0200) Subject: nut plugin: Fix building without the `upsclient' library. X-Git-Tag: collectd-4.0.0~115 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=896ac2332bbbb8f7aa09c977adc101ed81dfd126;p=collectd.git nut plugin: Fix building without the `upsclient' library. --- diff --git a/src/nut.c b/src/nut.c index 73a33185..d839ba49 100644 --- a/src/nut.c +++ b/src/nut.c @@ -330,7 +330,6 @@ static int nut_read (void) return ((success != 0) ? 0 : -1); } /* int nut_read */ -#endif /* NUT_HAVE_READ */ static int nut_shutdown (void) { @@ -347,6 +346,7 @@ static int nut_shutdown (void) return (0); } /* int nut_shutdown */ +#endif /* NUT_HAVE_READ */ void module_register (modreg_e load) {