summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fd96744)
raw | patch | inline | side by side (parent: fd96744)
author | campbellsean@google.com <campbellsean@google.com> | |
Fri, 6 Oct 2017 18:23:18 +0000 (14:23 -0400) | ||
committer | campbellsean@google.com <campbellsean@google.com> | |
Fri, 6 Oct 2017 18:23:18 +0000 (14:23 -0400) |
src/daemon/globals.c | patch | blob | history | |
src/daemon/globals.h | patch | blob | history |
diff --git a/src/daemon/globals.c b/src/daemon/globals.c
index b720cd88e5b8c59ca806cb5e2454c783b8fb7575..652ff06dad8fdd271881149c75b7b2005d0f60cc 100644 (file)
--- a/src/daemon/globals.c
+++ b/src/daemon/globals.c
#include "common.h"
#include "globals.h"
+#if HAVE_KSTAT_H
+#include <kstat.h>
+#endif
+
void hostname_set(char const *hostname) {
sstrncpy(hostname_g, hostname, sizeof(hostname_g));
}
char *hostname_g;
cdtime_t interval_g;
int timeout_g;
+#if HAVE_KSTAT_H
kstat_ctl_t *kc;
+#endif
diff --git a/src/daemon/globals.h b/src/daemon/globals.h
index b4eb5f6fefdd1637fed75791d7b40f1bbeae3faf..b91ccc82ddfd5f65d59c388d431c0ab865ff5d4c 100644 (file)
--- a/src/daemon/globals.h
+++ b/src/daemon/globals.h
#include <inttypes.h>
-#if HAVE_KSTAT_H
-#include <kstat.h>
-#endif
-
#ifndef DATA_MAX_NAME_LEN
#define DATA_MAX_NAME_LEN 128
#endif