diff options
Diffstat (limited to 'zencore/thread.cpp')
| -rw-r--r-- | zencore/thread.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp index ffc17f79a..ef04ce8a4 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -8,6 +8,8 @@ #if ZEN_PLATFORM_WINDOWS # include <zencore/windows.h> +#elif ZEN_PLATFORM_LINUX +# include <unistd.h> #endif namespace zen { @@ -271,7 +273,11 @@ IsProcessRunning(int pid) int GetCurrentProcessId() { +#if ZEN_PLATFORM_WINDOWS return ::GetCurrentProcessId(); +#else + return getpid(); +#endif } void |