aboutsummaryrefslogtreecommitdiffstats
path: root/pc/getid.c
diff options
context:
space:
mode:
Diffstat (limited to 'pc/getid.c')
-rw-r--r--pc/getid.c37
1 files changed, 6 insertions, 31 deletions
diff --git a/pc/getid.c b/pc/getid.c
index 82cfd6cb..eb30ae44 100644
--- a/pc/getid.c
+++ b/pc/getid.c
@@ -1,24 +1,6 @@
-#if defined(_MSC_VER) || defined(__MINGW32__)
-
-#ifdef OS2
-# define INCL_DOSPROCESS
-# include <os2.h>
-# if _MSC_VER == 510
-# define DosGetPID DosGetPid
-# endif
-#else
-# include <process.h>
-#endif
-
-#ifdef OS2
-int getpid(void)
-{
- PIDINFO PidInfo;
+#ifdef __MINGW32__
- DosGetPID(&PidInfo);
- return(PidInfo.pid);
-}
-#endif
+#include <process.h>
unsigned int getuid (void)
{
@@ -40,23 +22,16 @@ unsigned int getegid (void)
return (0);
}
-#endif
+#endif /* __MINGW32__ */
int getpgrp(void)
{
return (0);
}
-#if defined(_MSC_VER) || defined(__GO32__) || defined(__MINGW32__)
+#if defined(__DJGPP__) || defined(__MINGW32__)
int getppid(void)
{
-#ifdef OS2
- PIDINFO PidInfo;
-
- DosGetPID(&PidInfo);
- return(PidInfo.pidParent);
-#else
- return(0);
-#endif
+ return (0);
}
-#endif
+#endif /* __DJGPP__ || __MINGW32__ */