git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4334
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#define BSD_SELECT // use Berkley Sockets select
#include <assert.h>
-#include <sys\ioctl.h>
#include <sys\types.h>
-#include <sys\socket.h>
#include <utils.h>
#include <sys\time.h>
#include <in.h>
#include <netdb.h>
#include <nerrno.h>
+#if defined(__VISAGECPP__) && __IBMCPP__ < 400
+#include <socket.h>
+#include <ioctl.h>
+#include <select.h>
+#else
+#include <sys\socket.h>
+#include <sys\ioctl.h>
#include <sys\select.h>
+#endif
#include <string.h>
#include <stdio.h>
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;
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;