[Nagios-devel] [patch] popen

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] [patch] popen

Post by Guest »

this was complianing on 1.1-CVS on OS/X
I think it was due to popen.h being included twice somewhere

--
Index: cgi/popen.c
===================================================================
RCS file: /cvsroot/nagios/nagios/cgi/Attic/popen.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 popen.c
--- cgi/popen.c 26 Feb 2002 04:03:33 -0000 1.1.1.1
+++ cgi/popen.c 6 Dec 2003 11:24:40 -0000
@@ -29,6 +29,8 @@

#include "popen.h"

+pid_t *childpid;
+int *childerr;

/* 4.3BSD Reno doesn't define SIG_ERR */
#if defined(SIG_IGN) && !defined(SIG_ERR)
Index: cgi/popen.h
===================================================================
RCS file: /cvsroot/nagios/nagios/cgi/Attic/popen.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 popen.h
--- cgi/popen.h 26 Feb 2002 04:03:33 -0000 1.1.1.1
+++ cgi/popen.h 6 Dec 2003 11:24:40 -0000
@@ -1,7 +1,4 @@
/* include file for popen.c */

-pid_t *childpid;
-int *childerr;
-
FILE *spopen(const char *);
int spclose(FILE *);






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: lists@holsman.net
Locked