diff options
author | Heikki Kallasjoki <fis@zem.fi> | 2018-11-30 11:51:58 +0000 |
---|---|---|
committer | Heikki Kallasjoki <fis@zem.fi> | 2018-11-30 11:51:58 +0000 |
commit | 3509dc92b07c95d47aada5bd8656132ef842371a (patch) | |
tree | 17404b5af2f2714bb30c87473f38045f96712d60 /uname.c | |
parent | c4c6a42b5e7de3ce2e8dfffed9141a3186185644 (diff) | |
download | nano-exporter-3509dc92b07c95d47aada5bd8656132ef842371a.tar.gz nano-exporter-3509dc92b07c95d47aada5bd8656132ef842371a.tar.xz nano-exporter-3509dc92b07c95d47aada5bd8656132ef842371a.zip |
Refactor to allow excluding collectors from the build.
Stop including hardcoded links to all collectors from main.c. Instead, use a preprocessor X-macro "XCOLLECTORS" to take the list of collectors, and use that to declare the external "struct collector" objects and the list of collectors.
Diffstat (limited to 'uname.c')
-rw-r--r-- | uname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uname.c b/uname.c index 6d71764..4fd4eac 100644 --- a/uname.c +++ b/uname.c @@ -2,7 +2,7 @@ #include <stdlib.h> #include <sys/utsname.h> -#include "uname.h" +#include "collector.h" #include "util.h" static void *uname_init(int argc, char *argv[]); |