1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Fix build on 4.x

This commit is contained in:
Volker Stolz 2005-11-10 13:34:56 +00:00
parent 426b1817c3
commit b513a48231
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=147830
2 changed files with 33 additions and 4 deletions

View File

@ -0,0 +1,15 @@
$FreeBSD$
--- src/plot.c.orig
+++ src/plot.c
@@ -277,8 +277,8 @@
{
GtkTreeIter iter;
GtkTreeModel *model;
- plot->selected = 0;
gboolean activo;
+ plot->selected = 0;
/* Check if selected row is leaf or root */
if (gtk_tree_path_get_depth (arg1) == 1) {

View File

@ -1,11 +1,25 @@
--- src/sim-engine.c.orig Tue Aug 9 00:26:23 2005
+++ src/sim-engine.c Tue Aug 9 00:26:46 2005
@@ -265,7 +265,7 @@
$FreeBSD$
--- src/sim-engine.c.orig
+++ src/sim-engine.c
@@ -265,9 +265,9 @@
/* TODO Would be recomendable to use pthread? */
engine->child_pid = fork();
if (engine->child_pid == 0) {
- setpgrp ();
+ setpgrp(0, getpid());
/* Now oregano.simtype has gnucap or ngspice */
gchar *simexec = oregano.simexec;
- gchar *simexec = oregano.simexec;
+ { gchar *simexec = oregano.simexec;
/* !!!!!!!!!!! "-s" "-n" */
gchar *args[4] = { simexec, oregano.simtype, (gchar *)netlist, NULL };
@@ -298,6 +298,7 @@
* path y todo
*/
execvp(simexec, args);
+ }
/* We should never get here. */
g_warning ("Error executing the simulation engine.");