X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2Fglobals.h;h=9ec72f0de1a770155682167e790926bd5fb39f6e;hp=b4eb5f6fefdd1637fed75791d7b40f1bbeae3faf;hb=54619dc85fd308b21ed09a0271e5c7383c7921b9;hpb=fd96744998cbd405320ef820d038dd3ee0c87caf diff --git a/src/daemon/globals.h b/src/daemon/globals.h index b4eb5f6f..9ec72f0d 100644 --- a/src/daemon/globals.h +++ b/src/daemon/globals.h @@ -1,6 +1,6 @@ /** * collectd - src/globals.h - * Copyright (C) 2017 Florian octo Forster + * Copyright (C) 2017 Google LLC * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -26,22 +26,26 @@ #include -#if HAVE_KSTAT_H -#include -#endif - #ifndef DATA_MAX_NAME_LEN #define DATA_MAX_NAME_LEN 128 #endif +#ifndef PRIsz +#ifdef WIN32 +#define PRIsz "Iu" +#else +#define PRIsz "zu" +#endif /* WIN32 */ +#endif /* !PRIsz */ + /* Type for time as used by "utils_time.h" */ typedef uint64_t cdtime_t; /* hostname_set updates hostname_g */ void hostname_set(char const *hostname); -extern char *hostname_g; -extern cdtime_t interval_g; -extern int pidfile_from_cli; -extern int timeout_g; +extern char *hostname_g; +extern cdtime_t interval_g; +extern int pidfile_from_cli; +extern int timeout_g; #endif /* GLOBALS_H */