]> code.delx.au - gnu-emacs/blobdiff - lib-src/ntlib.c
(make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
[gnu-emacs] / lib-src / ntlib.c
index d5f6177f4a269855c355100a8426c2666435de3f..3e2caf508656a43c1991914552610486d2181017 100644 (file)
@@ -35,7 +35,7 @@ Boston, MA 02111-1307, USA.
    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);
 }
@@ -49,12 +49,6 @@ getwd (char *dir)
   return NULL;
 }
 
-int
-getpid ()
-{
-  return _getpid ();
-}
-
 static HANDLE getppid_parent;
 static int    getppid_ppid;
 
@@ -64,7 +58,7 @@ getppid(void)
   char *ppid;
   DWORD result;
 
-  ppid = getenv ("__PARENT_PROCESS_ID");
+  ppid = getenv ("EM_PARENT_PROCESS_ID");
   if (!ppid) 
     {
       printf("no pid.\n");