would necessitate including windows.h in the files that used it.
This is much easier. */
void
-sleep(int seconds)
+sleep(unsigned long seconds)
{
Sleep (seconds * 1000);
}
return NULL;
}
-int
-getpid ()
-{
- return _getpid ();
-}
-
static HANDLE getppid_parent;
static int getppid_ppid;
char *ppid;
DWORD result;
- ppid = getenv ("__PARENT_PROCESS_ID");
+ ppid = getenv ("EM_PARENT_PROCESS_ID");
if (!ppid)
{
printf("no pid.\n");