Index: trunk/util/gsch2pcb-rnd/gsch2pcb.c =================================================================== --- trunk/util/gsch2pcb-rnd/gsch2pcb.c (revision 11582) +++ trunk/util/gsch2pcb-rnd/gsch2pcb.c (revision 11583) @@ -23,7 +23,7 @@ - use getenv() instead of g_getenv(): on windows this won't do recursive variable expansion - use rnd-specific .scm - use pcb-rnd's conf system - - use popen() instead of glib's spawn (stderr is always printed to stderr) + - use pcb_popen() instead of glib's spawn (stderr is always printed to stderr) */ #include "config.h" Index: trunk/util/gsch2pcb-rnd/help.c =================================================================== --- trunk/util/gsch2pcb-rnd/help.c (revision 11582) +++ trunk/util/gsch2pcb-rnd/help.c (revision 11583) @@ -22,7 +22,7 @@ Behavior different from the original: - use getenv() instead of g_getenv(): on windows this won't do recursive variable expansion - use rnd-specific .scm - - use popen() instead of glib's spawn (stderr is always printed to stderr) + - use pcb_popen() instead of glib's spawn (stderr is always printed to stderr) */ #include "config.h" #include "method.h" Index: trunk/util/gsch2pcb-rnd/run.c =================================================================== --- trunk/util/gsch2pcb-rnd/run.c (revision 11582) +++ trunk/util/gsch2pcb-rnd/run.c (revision 11583) @@ -18,10 +18,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -/* for popen() */ -#define _DEFAULT_SOURCE -#define _BSD_SOURCE - #include #include #include @@ -30,6 +26,7 @@ #include "gsch2pcb.h" #include "../src_3rd/genvector/vts0.h" #include "../src/compat_misc.h" +#include "../src/safe_fs.h" #include "gsch2pcb_rnd_conf.h" @@ -115,13 +112,13 @@ printf("%s", SEP_STRING); } - f = popen(cmd, "r"); + f = pcb_popen(cmd, "r"); while(fgets(line, sizeof(line), f) != NULL) { if (conf_g2pr.utils.gsch2pcb_rnd.verbose) fputs(line, stdout); } - if (pclose(f) == 0) + if (pcb_pclose(f) == 0) result = TRUE; else fprintf(stderr, "Failed to execute external program\n");