X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Fglobals.h;h=5a277c007c599e04b6c05d79a113fca18bdcf122;hb=b9b5e5d573d0011c4f3276e9b84b73ba4dd2e870;hp=58700316343e4142f9d29ddc2755b1239793e503;hpb=fa56155c34eed72740d375208a63571d5f9d59e0;p=collectd.git diff --git a/src/daemon/globals.h b/src/daemon/globals.h index 58700316..5a277c00 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,14 +26,22 @@ #include +#ifndef DATA_MAX_NAME_LEN +#define DATA_MAX_NAME_LEN 128 +#endif + +#ifndef PRIsz +#define PRIsz "zu" +#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 */