From bc3f6ee57a90375040b0ecd438e50f6065366db9 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Mon, 16 Apr 2012 00:35:11 +0200 Subject: [PATCH] Buildfix --- base/CMakeLists.txt | 3 ++- base/PCMain.cpp | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/base/CMakeLists.txt b/base/CMakeLists.txt index ab9db52bed..2c4d0c99aa 100644 --- a/base/CMakeLists.txt +++ b/base/CMakeLists.txt @@ -1,7 +1,8 @@ set(SRCS LAMEString.cpp colorutil.cpp - error_context.cpp) + error_context.cpp + display.cpp) set(SRCS ${SRCS}) diff --git a/base/PCMain.cpp b/base/PCMain.cpp index 3517a8c90c..8ad3ebd509 100644 --- a/base/PCMain.cpp +++ b/base/PCMain.cpp @@ -6,6 +6,8 @@ #include #include #include +#else +#include #endif #include @@ -169,7 +171,7 @@ int main(int argc, char *argv[]) { #else // Mac - what about linux? Also, ugly hardcoding. const char *path = getenv("HOME"); - if (!homeDir) { + if (!path) { struct passwd* pwd = getpwuid(getuid()); if (pwd) path = pwd->pw_dir;