From f7b1794467df917d187c9499cafbbbdd8605efe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Santoro?= Date: Mon, 15 Jan 2024 17:44:34 +0000 Subject: [PATCH] Define ETIME for systems without that constant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ETIME alternative implementation as ETIMEDOUT is already available for the worker, but not for the naemon component. This fixes the following compilation error on systems without ETIME: src/naemon/workers.c:517:27: error: use of undeclared identifier 'ETIME' if (wpres.error_code == ETIME) { ^ 1 error generated. Signed-off-by: Sébastien Santoro --- src/naemon/workers.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/naemon/workers.h b/src/naemon/workers.h index f96db890..3f671668 100644 --- a/src/naemon/workers.h +++ b/src/naemon/workers.h @@ -12,6 +12,10 @@ #define WPROC_FORCE (1 << 0) +#ifndef ETIME +#define ETIME ETIMEDOUT +#endif + NAGIOS_BEGIN_DECL typedef struct wproc_result {