Index: trunk/src_plugins/mincut/pcb-mincut/graph.c =================================================================== --- trunk/src_plugins/mincut/pcb-mincut/graph.c (revision 11585) +++ trunk/src_plugins/mincut/pcb-mincut/graph.c (revision 11586) @@ -16,13 +16,10 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -/* for popen() */ -#define _DEFAULT_SOURCE -#define _BSD_SOURCE - #include #include #include "graph.h" +#include "safe_fs.h" /* allocate a new graph of n nodes with no edges */ gr_t *gr_alloc(int n) @@ -100,7 +97,7 @@ cmd = malloc(strlen(type)*2 + strlen(name) + 64); sprintf(cmd, "dot -T%s -o %s.%s", type, name, type); - f = popen(cmd, "w"); + f = pcb_popen(cmd, "w"); if (f == NULL) return -1; @@ -125,7 +122,7 @@ } fprintf(f, "}\n"); - pclose(f); + pcb_pclose(f); return 0; }