From 03e1da0ba9209808cb3e2a9839df9fae6adf1193 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 29 Oct 2014 10:37:39 -0700 Subject: [PATCH 1/2] include unistd only on Q_OS_LINUX --- libraries/shared/src/LogHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/shared/src/LogHandler.cpp b/libraries/shared/src/LogHandler.cpp index 1d8e55f432..5be98bf162 100644 --- a/libraries/shared/src/LogHandler.cpp +++ b/libraries/shared/src/LogHandler.cpp @@ -17,7 +17,7 @@ #define getpid _getpid #define getppid _getpid // hack to build #define pid_t int // hack to build -#else +#elsif Q_OS_LINUX #include // for getpid() on linux #endif From 7f3482bbdd38d9ab451d1890e9113f25fbd59b2f Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 29 Oct 2014 10:53:34 -0700 Subject: [PATCH 2/2] swithc from elif to elsif --- libraries/shared/src/LogHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/shared/src/LogHandler.cpp b/libraries/shared/src/LogHandler.cpp index 5be98bf162..3183698421 100644 --- a/libraries/shared/src/LogHandler.cpp +++ b/libraries/shared/src/LogHandler.cpp @@ -17,7 +17,7 @@ #define getpid _getpid #define getppid _getpid // hack to build #define pid_t int // hack to build -#elsif Q_OS_LINUX +#elif Q_OS_LINUX #include // for getpid() on linux #endif