git-svn-id: svn://db.shs.com.ru/pip@359 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -18,6 +18,9 @@
|
||||
*/
|
||||
|
||||
#include "piterminal.h"
|
||||
#ifdef CC_GCC
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#ifdef WINDOWS
|
||||
# include "pisharedmemory.h"
|
||||
# include <windows.h>
|
||||
|
||||
@@ -142,13 +142,9 @@
|
||||
# ifdef MAC_OS
|
||||
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
# else
|
||||
//# pragma GCC diagnostic ignored "-Wpragmas"
|
||||
# pragma GCC diagnostic ignored "-Waggressive-loop-optimizations"
|
||||
//# pragma GCC diagnostic ignored "-Waggressive-loop-optimizations"
|
||||
# endif
|
||||
//# pragma GCC diagnostic ignored "-Wformat"
|
||||
//# pragma GCC diagnostic ignored "-Wformat-extra-args"
|
||||
# pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
//# pragma GCC diagnostic ignored "-Wsign-compare"
|
||||
# endif
|
||||
# ifdef ANDROID
|
||||
# pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
|
||||
@@ -63,6 +63,9 @@
|
||||
# endif
|
||||
#endif
|
||||
#include <errno.h>
|
||||
#ifdef CC_GCC
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
||||
/** \class PIEthernet
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
#include "piconfig.h"
|
||||
#include "pidir.h"
|
||||
#include <errno.h>
|
||||
#ifdef CC_GCC
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#ifdef WINDOWS
|
||||
# include <winreg.h>
|
||||
# define TIOCM_LE 1
|
||||
|
||||
@@ -32,6 +32,9 @@
|
||||
# include <sys/stat.h>
|
||||
# include <sys/mman.h>
|
||||
#endif
|
||||
#ifdef CC_GCC
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
||||
/*! \class PISharedMemory
|
||||
|
||||
@@ -138,8 +138,7 @@ void PIProcess::startProc(bool detached) {
|
||||
if (g_out) tf_out = freopen(f_out.path().data(), "w", stdout);
|
||||
if (g_err) tf_err = freopen(f_err.path().data(), "w", stderr);
|
||||
#ifndef WINDOWS
|
||||
int as2;
|
||||
if (!wd.isEmpty()) as2 = chdir(wd.data());
|
||||
if (!wd.isEmpty()) chdir(wd.data());
|
||||
#endif
|
||||
#ifdef WINDOWS
|
||||
GetStartupInfoA(&si);
|
||||
|
||||
Reference in New Issue
Block a user