Skip to content

Commit ec301c6

Browse files
committed
JSON output: HOST_NAME_MAX is undefined on BSD systems
1 parent 7e789d6 commit ec301c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/plugins/output/json/src/Syslog.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949

5050
#include "Syslog.hpp"
5151

52+
#ifndef HOST_NAME_MAX
53+
#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
54+
#endif
55+
5256
/** Delay between reconnection attempts (seconds) */
5357
#define RECONN_DELAY (5)
5458
/** How ofter to report statistics (seconds) */

0 commit comments

Comments
 (0)