[Nagios-devel] [patch] popen

Ian Holsman lists at holsman.net
Sat Dec 6 20:18:01 UTC 2003


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 <signal.h> 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 *);





More information about the Nagios-devel mailing list