[patch] popen

Ian Holsman lists at holsman.net
Sun Dec 7 05:17:06 CET 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 *);



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/




More information about the Developers mailing list