[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: pcb.git: branch: master updated (02fa7cf6646ad4f16383c91e53784986f4d8d15d)



The branch, master has been updated
       via  02fa7cf6646ad4f16383c91e53784986f4d8d15d (commit)
       via  70786c0c18c8d2c4626d429068e88a4601a21d6d (commit)
      from  0c62fca0df9bd9ebe7bedfbee0af3502e4298a42 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 configure.ac   |    3 +++
 src/.gitignore |    2 ++
 src/action.c   |    8 ++++++++
 3 files changed, 13 insertions(+), 0 deletions(-)


=================
 Commit Messages
=================

commit 02fa7cf6646ad4f16383c91e53784986f4d8d15d
Author: Cesar Strauss <cstrauss@xxxxxxxxxxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>

    Check for the _spawnvp function and use it if present.

:100644 100644 a220a82... abdd8a1... M	configure.ac
:100644 100644 0e035a6... 88907af... M	src/action.c

commit 70786c0c18c8d2c4626d429068e88a4601a21d6d
Author: Cesar Strauss <cstrauss@xxxxxxxxxxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>

    Ignore generated files on Windows.

:100644 100644 bb22c23... c7f149e... M	src/.gitignore

=========
 Changes
=========

commit 02fa7cf6646ad4f16383c91e53784986f4d8d15d
Author: Cesar Strauss <cstrauss@xxxxxxxxxxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>

    Check for the _spawnvp function and use it if present.

diff --git a/configure.ac b/configure.ac
index a220a82..abdd8a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -662,6 +662,9 @@ AC_CHECK_FUNCS(popen)
 AC_CHECK_FUNCS(realpath canonicalize_file_name)
 libiberty_NEED_DECLARATION(canonicalize_file_name)
 
+# for pcb_spawnvp in action.c on Windows
+AC_CHECK_FUNCS(_spawnvp)
+
 AC_HEADER_STDC
 AC_CHECK_HEADERS(limits.h locale.h string.h sys/types.h regex.h pwd.h)
 AC_CHECK_HEADERS(sys/socket.h netinet/in.h netdb.h sys/param.h sys/times.h sys/wait.h)
diff --git a/src/action.c b/src/action.c
index 0e035a6..88907af 100644
--- a/src/action.c
+++ b/src/action.c
@@ -7287,6 +7287,13 @@ ActionExecCommand (int argc, char **argv, int x, int y)
 static int
 pcb_spawnvp (char **argv)
 {
+#ifdef HAVE__SPAWNVP
+  int result = _spawnvp (_P_WAIT, argv[0], argv);
+  if (result == -1)
+    return 1;
+  else
+    return 0;
+#else
   int pid;
   pid = fork ();
   if (pid < 0)
@@ -7308,6 +7315,7 @@ pcb_spawnvp (char **argv)
       wait (&rv);
     }
   return 0;
+#endif
 }
 
 /* ---------------------------------------------------------------- */

commit 70786c0c18c8d2c4626d429068e88a4601a21d6d
Author: Cesar Strauss <cstrauss@xxxxxxxxxxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>

    Ignore generated files on Windows.

diff --git a/src/.gitignore b/src/.gitignore
index bb22c23..c7f149e 100644
--- a/src/.gitignore
+++ b/src/.gitignore
@@ -10,3 +10,5 @@ res_parse.[ch]
 *pcb-menu.h
 pcbtest.sh
 pcb
+pcb.exe
+pcb_icon.ico




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs