diff options
author | Artjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com> | 2022-04-05 13:19:13 +0300 |
---|---|---|
committer | Artjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com> | 2022-04-05 13:19:13 +0300 |
commit | d02637b7833c3723fa1d55f2b2a051b1fe288bb9 (patch) | |
tree | 60b4d7f818daf58f6ef7844e8a838b0a7acdd2ab /src | |
parent | ab2a50c8b44edea63833e861d443f306b234755c (diff) |
.......... [DEV-2132] added windows header guard for pid
Diffstat (limited to 'src')
-rw-r--r-- | src/libs/zbxnix/pid.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libs/zbxnix/pid.h b/src/libs/zbxnix/pid.h index 65c271fcaae..0bd1dcaa96c 100644 --- a/src/libs/zbxnix/pid.h +++ b/src/libs/zbxnix/pid.h @@ -20,9 +20,13 @@ #ifndef ZABBIX_PID_H #define ZABBIX_PID_H +#ifndef _WINDOWS +# error "This module is only available for Windows OS" +#endif + #include "threads.h" int create_pid_file(const char *pidfile); int read_pid_file(const char *pidfile, pid_t *pid, char *error, size_t max_error_len); void drop_pid_file(const char *pidfile); -#endif /* ZABBIX_FATAL_H */ +#endif /* ZABBIX_PID_H */ |