From 50ab0020726543090764c11e17b35221f37096f4 Mon Sep 17 00:00:00 2001 From: Weiyi Wang Date: Tue, 13 Aug 2019 15:42:22 -0400 Subject: [PATCH] Guard unistd.h with MacOS only macro Fix compile error on Windows caused by #4877 Weird, I thought I saw this guard during the code review... --- src/citra_qt/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 0ae154b89..ac68aea94 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -15,7 +15,9 @@ #include #include #include -#include +#ifdef __APPLE__ +#include // for chdir +#endif #include "citra_qt/aboutdialog.h" #include "citra_qt/applets/mii_selector.h" #include "citra_qt/applets/swkbd.h"