Skip to content

Commit

Permalink
Define ETIME for systems without that constant
Browse files Browse the repository at this point in the history
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 <dereckson@espace-win.org>
  • Loading branch information
dereckson authored and sni committed Jan 15, 2024
1 parent 49b2519 commit d8e1f42
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/naemon/workers.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

#define WPROC_FORCE (1 << 0)

#ifndef ETIME
#define ETIME ETIMEDOUT
#endif

NAGIOS_BEGIN_DECL

typedef struct wproc_result {
Expand Down

0 comments on commit d8e1f42

Please sign in to comment.