From 16cd0c8151eee652d88b0b6f3aaa5b917cb87e13 Mon Sep 17 00:00:00 2001 From: "M. Sean Finney" Date: Tue, 25 Oct 2005 10:38:02 +0000 Subject: - added code to allow check_tcp (via np_net_connect) work with local unix sockets. some testing would be welcome. based on idea from Alex Samorukov. - also introduced a check_clamd behavior in check_tcp. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1261 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/netutils.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins/netutils.h') diff --git a/plugins/netutils.h b/plugins/netutils.h index 9b0557d3..8bc7bd61 100644 --- a/plugins/netutils.h +++ b/plugins/netutils.h @@ -40,6 +40,14 @@ #include #include +#ifdef HAVE_SYS_UN_H +# include +# ifndef UNIX_PATH_MAX + /* linux uses this, on sun it's hard-coded at 108 without a define */ +# define UNIX_PATH_MAX 108 +# endif /* UNIX_PATH_MAX */ +#endif /* HAVE_SYS_UN_H */ + RETSIGTYPE socket_timeout_alarm_handler (int) __attribute__((noreturn)); /* process_request and wrapper macros */ -- cgit v1.2.3-74-g34f1