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 work component, 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.
  • Loading branch information
dereckson committed Jan 15, 2024
1 parent 6062f97 commit 8f1cf94
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 8f1cf94

Please sign in to comment.