naemon / naemon-core

Networks, Applications and Event Monitor
http://www.naemon.io/
GNU General Public License v2.0
151 stars 63 forks source link

Define ETIME for systems without that constant #441

Closed dereckson closed 7 months ago

dereckson commented 7 months ago

ETIME alternative implementation as ETIMEDOUT is already available for the worker 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.

This has been noticed on FreeBSD.

sni commented 7 months ago

thanks for your contribution