[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)
{
- Re: MSVC compiler support [patch 18]: recursion stack overflow, (continued)
- MSVC compiler support [patch 20]: opendir, readdir, ..., Michael Goffioul, 2006/10/17
- MSVC compiler support [patch 20]: opendir, readdir, ..., John W. Eaton, 2006/10/25
- MSVC compiler support [patch 21]: glob_match ctor, Michael Goffioul, 2006/10/17
- MSVC compiler support [patch 21]: glob_match ctor, John W. Eaton, 2006/10/25
- MSVC compiler support [patch 22]: mx-op-defs additional macros, Michael Goffioul, 2006/10/17
- MSVC compiler support [patch 22]: mx-op-defs additional macros, John W. Eaton, 2006/10/26
- MSVC compiler support [patch 32]: waitpid,
Michael Goffioul <=
- MSVC compiler support [patch 32]: waitpid, John W. Eaton, 2006/10/17
- MSVC compiler support [patch 25]: INFINITE, Michael Goffioul, 2006/10/17
- MSVC compiler support [patch 25]: INFINITE, John W. Eaton, 2006/10/25
- MSVC compiler support [patch 24]: strftime crash, Michael Goffioul, 2006/10/17
- MSVC compiler support [patch 24]: strftime crash, John W. Eaton, 2006/10/25
- MSVC compiler support [patch 24]: strftime crash, John W. Eaton, 2006/10/25
- MSVC compiler support [patch 26]: MinGW code share, Michael Goffioul, 2006/10/17
- MSVC compiler support [patch 26]: MinGW code share, John W. Eaton, 2006/10/25
- MSVC compiler support [patch 27]: OCTAVE_HOME, Michael Goffioul, 2006/10/17
- Re: MSVC compiler support [patch 27]: OCTAVE_HOME, David Bateman, 2006/10/17