octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MSVC compiler support [patch 32]: waitpid


From: Michael Goffioul
Subject: MSVC compiler support [patch 32]: waitpid
Date: Tue, 17 Oct 2006 21:55:33 +0200
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

When HAVE_WAITPID is not defined, reports a compilation error because retval
is not defined
Index: liboctave/oct-syscalls.cc
===================================================================
RCS file: /cvs/octave/liboctave/oct-syscalls.cc,v
retrieving revision 1.9
diff -p -c -r1.9 oct-syscalls.cc
*** liboctave/oct-syscalls.cc   17 Sep 2005 00:50:58 -0000      1.9
--- liboctave/oct-syscalls.cc   17 Oct 2006 11:07:42 -0000
*************** octave_syscalls::waitpid (pid_t pid, int
*** 310,318 ****
                          std::string& msg)
  {
    msg = std::string ();
  
  #if defined (HAVE_WAITPID)
!   pid_t retval = ::octave_waitpid (pid, status, options);
  
    if (retval < 0)
      {
--- 310,319 ----
                          std::string& msg)
  {
    msg = std::string ();
+   pid_t retval = -1;
  
  #if defined (HAVE_WAITPID)
!   retval = ::octave_waitpid (pid, status, options);
  
    if (retval < 0)
      {

reply via email to

[Prev in Thread] Current Thread [Next in Thread]