summaryrefslogtreecommitdiff
path: root/src/plugins/pid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/pid.c')
-rw-r--r--src/plugins/pid.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/pid.c b/src/plugins/pid.c
index 2fdd2570c..48013e3eb 100644
--- a/src/plugins/pid.c
+++ b/src/plugins/pid.c
@@ -2,13 +2,10 @@
#include <stdio.h>
#include <string.h>
-#ifndef _WIN32
- #include <unistd.h>
-#endif
-#ifdef MINGW
- #include <process.h>
- #include <io.h>
+#if !defined _WIN32 || defined MINGW
+ #include <unistd.h> // getpid(), unlink()
#else
+ #include <windows.h>
#define getpid GetCurrentProcessId
#endif