[Nagiosplug-checkins] nagiosplug/plugins-root Makefile.am, 1.8, 1.9 check_icmp.c, 1.5, 1.6

Ton Voon tonvoon at users.sourceforge.net
Tue Oct 24 11:48:28 CEST 2006


Update of /cvsroot/nagiosplug/nagiosplug/plugins-root
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv11116

Modified Files:
	Makefile.am check_icmp.c 
Log Message:
Fixed compile on non-glibc platforms


Index: Makefile.am
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-root/Makefile.am,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- Makefile.am	7 Jun 2006 07:59:32 -0000	1.8
+++ Makefile.am	24 Oct 2006 09:48:26 -0000	1.9
@@ -67,8 +67,8 @@
 ##############################################################################
 # the actual targets
 check_dhcp_LDADD = $(NETLIBS)
-check_icmp_LDADD = $(SOCKETLIBS)
+check_icmp_LDADD = $(NETLIBS) $(SOCKETLIBS)
 pst3_LDADD = -lkvm
 
 check_dhcp_DEPENDENCIES = check_dhcp.c $(NETOBJS) $(DEPLIBS) 
-check_icmp_DEPENDENCIES = check_icmp.c
+check_icmp_DEPENDENCIES = check_icmp.c $(NETOBJS)

Index: check_icmp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-root/check_icmp.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- check_icmp.c	23 Oct 2006 00:02:44 -0000	1.5
+++ check_icmp.c	24 Oct 2006 09:48:26 -0000	1.6
@@ -42,8 +42,9 @@
 * 
 *****************************************************************************/
 
-/* progname may be check_ldaps */
-//char *progname = "check_ldap";
+/* progname may change */
+/* char *progname = "check_icmp"; */
+char *progname;
 const char *revision = "$Revision$";
 const char *copyright = "2005-2006";
 const char *email = "nagiosplug-devel at lists.sourceforge.net";
@@ -195,7 +196,6 @@
 extern char **environ;
 
 /** global variables **/
-static char *progname;
 static struct rta_host **table, *cursor, *list;
 static threshold crit = {80, 500000}, warn = {40, 200000};
 static int mode, protocols, sockets, debug = 0, timeout = 10;





More information about the Commits mailing list