aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-11-10 21:34:56 +0800
committervs <vs@FreeBSD.org>2005-11-10 21:34:56 +0800
commit58bd83e920e6e1f7590ea3a778f79414da9512bf (patch)
tree06ed5941310f58d075b1f4bf3e1d42db6e077b59
parenta9a8dfd0626c0ca26cf22f566988064960018b63 (diff)
downloadfreebsd-ports-gnome-58bd83e920e6e1f7590ea3a778f79414da9512bf.tar.gz
freebsd-ports-gnome-58bd83e920e6e1f7590ea3a778f79414da9512bf.tar.zst
freebsd-ports-gnome-58bd83e920e6e1f7590ea3a778f79414da9512bf.zip
Fix build on 4.x
-rw-r--r--cad/oregano/files/patch-src_plot.c15
-rw-r--r--cad/oregano/files/patch-src_sim-engine.c22
2 files changed, 33 insertions, 4 deletions
diff --git a/cad/oregano/files/patch-src_plot.c b/cad/oregano/files/patch-src_plot.c
new file mode 100644
index 000000000000..8d92d65d7a26
--- /dev/null
+++ b/cad/oregano/files/patch-src_plot.c
@@ -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) {
diff --git a/cad/oregano/files/patch-src_sim-engine.c b/cad/oregano/files/patch-src_sim-engine.c
index c9e9410fc9af..c4f7d06b8e0a 100644
--- a/cad/oregano/files/patch-src_sim-engine.c
+++ b/cad/oregano/files/patch-src_sim-engine.c
@@ -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.");