[Nagiosplug-checkins] CVS: nagiosplug/plugins check_pgsql.c,1.7,1.8 common.h.in,1.4,1.5 netutils.c,1.1.1.1,1.2 netutils.h.in,1.1.1.1,1.2

Jeremy T. Bouse undrgrid at users.sourceforge.net
Fri Mar 7 14:12:09 CET 2003


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv11153/plugins

Modified Files:
	check_pgsql.c common.h.in netutils.c netutils.h.in 
Log Message:
Added getaddrinfo.[ch] & gethostbyname.[ch] to provide RFC2553 functions
	if missing in system libs and lwres not present
Moved all references to netdb.h and sys/socket.h into common.h.in
Modified automake call in tools/setup to include adding missing files
	so config.sub and config.guess will be available


Index: check_pgsql.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_pgsql.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** check_pgsql.c	18 Feb 2003 23:00:18 -0000	1.7
--- check_pgsql.c	7 Mar 2003 22:11:25 -0000	1.8
***************
*** 80,84 ****
  #include "common.h"
  #include "utils.h"
- #include <netdb.h>
  #include <libpq-fe.h>
  
--- 80,83 ----

Index: common.h.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/common.h.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** common.h.in	10 Feb 2003 23:28:16 -0000	1.4
--- common.h.in	7 Mar 2003 22:11:25 -0000	1.5
***************
*** 73,76 ****
--- 73,83 ----
  #include <ctype.h>
  
+ #if HAVE_LWRES_NETDB_H
+ #include <lwres/netdb.h>
+ #elif !HAVE_GETADDRINFO
+ #include "getaddrinfo.h"
+ #else
+ #include <netdb.h>
+ #endif
  
  /*

Index: netutils.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/netutils.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** netutils.c	28 Feb 2002 06:42:59 -0000	1.1.1.1
--- netutils.c	7 Mar 2003 22:11:25 -0000	1.2
***************
*** 32,39 ****
  #include "config.h"
  #include "common.h"
- #include <sys/socket.h>
  #include <netinet/in.h>
  #include <arpa/inet.h>
- #include <netdb.h>
  
  extern int socket_timeout;
--- 32,37 ----

Index: netutils.h.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/netutils.h.in,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** netutils.h.in	28 Feb 2002 06:42:59 -0000	1.1.1.1
--- netutils.h.in	7 Mar 2003 22:11:25 -0000	1.2
***************
*** 35,42 ****
  #undef HAVE_STRING_H
  
! #include <sys/socket.h>
  #include <netinet/in.h>
  #include <arpa/inet.h>
- #include <netdb.h>
  
  void socket_timeout_alarm_handler (int);
--- 35,41 ----
  #undef HAVE_STRING_H
  
! #include "common.h"
  #include <netinet/in.h>
  #include <arpa/inet.h>
  
  void socket_timeout_alarm_handler (int);





More information about the Commits mailing list