Mercurial > octave
view liboctave/wrappers/async-system-wrapper.h @ 22264:9b78fda78300
fix build failure for --without-z (bug #48757)
* liboctave/wrappers/async-system-wrapper.h,
liboctave/wrappers/async-system-wrapper.c: New files for function
extracted from Fsystem.
* liboctave/wrappers/module.mk: Update.
* toplev.cc: Include async-system-wrapper.h.
(Fsystem): Use new octave_async_system_wrapper for async case.
* oct-procbuf.cc: Include unistd.h, reluctantly. Use HAVE_UNISTD_H
instead of HAVE_SYS_WAIT_H for conditional code.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 11 Aug 2016 12:33:26 -0400 |
parents | |
children | 4caa7b28d183 |
line wrap: on
line source
/* Copyright (C) 2016 John W. Eaton This file is part of Octave. Octave is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. Octave is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Octave; see the file COPYING. If not, see <http://www.gnu.org/licenses/>. */ #if ! defined (octave_async_system_wrapper_h) #define octave_async_system_wrapper_h 1 #include <sys/types.h> #if defined __cplusplus extern "C" { #endif extern pid_t octave_async_system_wrapper (const char *cmd); #if defined __cplusplus } #endif #endif