Skip to content
This repository was archived by the owner on May 9, 2018. It is now read-only.

Commit a8539ce

Browse files
committedAug 3, 2016
Fixing nagios 4.2 comment type rename
1 parent 4245c17 commit a8539ce

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
 

‎configure.ac

+5
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ AC_CHECK_DECL([delete_downtime_by_hostname_service_description_start_time_commen
119119
AC_CHECK_DECL([shutdown_command_file_worker],
120120
AC_DEFINE([HAVE_SHUTDOWN_COMMAND_FILE_WORKER], [], [Have shutdown_command_file_worker function]),
121121
[], [#include <nagios.h>])
122+
123+
AC_CHECK_TYPE([nagios_comment],
124+
[AC_DEFINE([HAVE_NAGIOS_COMMENT_TYPE], [], [Have nagios 4.2 comment type])],
125+
[], [#include <comments.h>])
126+
122127
CFLAGS=$CFLAGS_BAK
123128

124129
AC_SUBST([libpcre_LIBS])

‎mods/common.h

+4
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ int handle_pubstartup(json_t * def);
1919
# define ZMQ_POLL_MSEC 1 // zmq_poll is msec
2020
#endif
2121

22+
#ifdef HAVE_NAGIOS_COMMENT_TYPE
23+
#include <comments.h>
24+
typedef nagios_comment comment;
25+
#endif

0 commit comments

Comments
 (0)
This repository has been archived.