Răsfoiți Sursa

pst3.c must not use nagiosplug/gnulib includes

Thomas Guyot-Sionnest 16 ani în urmă
părinte
comite
c326b4dc1d
3 a modificat fișierele cu 6 adăugiri și 3 ștergeri
  1. 2 1
      NEWS
  2. 4 1
      plugins-root/Makefile.am
  3. 0 1
      plugins-root/pst3.c

+ 2 - 1
NEWS

@@ -17,7 +17,8 @@ This file documents the major additions and syntax changes between releases.
 	Fix regression in check_http ssl checks on some servers - make SNI an option
 	Fix regression in check_http ssl checks on some servers - make SNI an option
 	Fix guest mode support in check_disk_smb
 	Fix guest mode support in check_disk_smb
 	Fix check_disk_smb and check_ircd failures when run via ePN
 	Fix check_disk_smb and check_ircd failures when run via ePN
-	check_ldap now allows for specifying an empty LDAP base
+	check_ldap now allows for specifying an empty LDAP bas
+	Fix compilation error of pst3 in Solaris 8
 	WARNINGS
 	WARNINGS
 	Updated developer documentation to say that performance labels should not have an equals sign or
 	Updated developer documentation to say that performance labels should not have an equals sign or
 	single quote in the label
 	single quote in the label

+ 4 - 1
plugins-root/Makefile.am

@@ -13,7 +13,7 @@ AM_CFLAGS = -DNP_VERSION='"$(NP_VERSION)"'
 
 
 VPATH = $(top_srcdir) $(top_srcdir)/lib $(top_srcdir)/plugins $(top_srcdir)/plugins/t $(srcdir)
 VPATH = $(top_srcdir) $(top_srcdir)/lib $(top_srcdir)/plugins $(top_srcdir)/plugins/t $(srcdir)
 
 
-INCLUDES = -I.. -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins @SSLINCLUDE@
+AM_CPPFLAGS = -I.. -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins @SSLINCLUDE@
 
 
 localedir = $(datadir)/locale
 localedir = $(datadir)/locale
 DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
 DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
@@ -79,9 +79,12 @@ install-exec-local: $(noinst_PROGRAMS)
 # the actual targets
 # the actual targets
 check_dhcp_LDADD = @LTLIBINTL@ $(NETLIBS)
 check_dhcp_LDADD = @LTLIBINTL@ $(NETLIBS)
 check_icmp_LDADD = @LTLIBINTL@ $(NETLIBS) $(SOCKETLIBS)
 check_icmp_LDADD = @LTLIBINTL@ $(NETLIBS) $(SOCKETLIBS)
+
 # -m64 needed at compiler and linker phase
 # -m64 needed at compiler and linker phase
 pst3_CFLAGS = @PST3CFLAGS@
 pst3_CFLAGS = @PST3CFLAGS@
 pst3_LDFLAGS = @PST3CFLAGS@
 pst3_LDFLAGS = @PST3CFLAGS@
+# pst3 must not use nagiosplug/gnulib includes!
+pst3_CPPFLAGS =
 
 
 check_dhcp_DEPENDENCIES = check_dhcp.c $(NETOBJS) $(DEPLIBS) 
 check_dhcp_DEPENDENCIES = check_dhcp.c $(NETOBJS) $(DEPLIBS) 
 check_icmp_DEPENDENCIES = check_icmp.c $(NETOBJS)
 check_icmp_DEPENDENCIES = check_icmp.c $(NETOBJS)

+ 0 - 1
plugins-root/pst3.c

@@ -49,7 +49,6 @@
 #include <errno.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <fcntl.h>
 #include <procfs.h>
 #include <procfs.h>
-#include <errno.h>
 #include <sys/types32.h>
 #include <sys/types32.h>
 
 
 /*
 /*