diff --git a/src/os2/gsocket.c b/src/os2/gsocket.c index 85ea3a2313..cccf54e433 100644 --- a/src/os2/gsocket.c +++ b/src/os2/gsocket.c @@ -14,15 +14,21 @@ #define BSD_SELECT // use Berkley Sockets select #include -#include #include -#include #include #include #include #include #include +#if defined(__VISAGECPP__) && __IBMCPP__ < 400 +#include +#include +#include +#else +#include +#include #include +#endif #include #include diff --git a/src/os2/utils.cpp b/src/os2/utils.cpp index abea758038..f6adb6b772 100644 --- a/src/os2/utils.cpp +++ b/src/os2/utils.cpp @@ -160,7 +160,7 @@ bool wxShell( SData.PgmName = zShell; sInputs = "/C " + rCommand; - SData.PgmInputs = NULL; //(BYTE*)sInputs.c_str(); + SData.PgmInputs = (BYTE*)sInputs.c_str(); SData.TermQ = 0; SData.Environment = 0; SData.InheritOpt = SSF_INHERTOPT_SHELL; @@ -177,7 +177,7 @@ bool wxShell( SData.ObjectBuffLen = (ULONG)sizeof(achObjBuf); rc = ::DosStartSession(&SData, &ulSessID, &vPid); - if (rc == 0) + if (rc == 0 || rc == 457) // NO_ERROR or SMG_START_IN_BACKGROUND { PTIB ptib; PPIB ppib;