aboutsummaryrefslogtreecommitdiff
path: root/src/zenmaster
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2025-10-10 14:09:59 +0200
committerStefan Boberg <[email protected]>2025-10-10 14:10:22 +0200
commit671f16ea344a5f3da442286299d85ec80ff4a39a (patch)
treebb962d17ced693d3c23c7499ca5475ae4d73b1ae /src/zenmaster
parentcompile fixes (diff)
downloadzen-671f16ea344a5f3da442286299d85ec80ff4a39a.tar.xz
zen-671f16ea344a5f3da442286299d85ec80ff4a39a.zip
sandboxwin should only build on Windows
Diffstat (limited to 'src/zenmaster')
-rw-r--r--src/zenmaster/sandboxwin.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/zenmaster/sandboxwin.cpp b/src/zenmaster/sandboxwin.cpp
index 6377fda0b..185db513c 100644
--- a/src/zenmaster/sandboxwin.cpp
+++ b/src/zenmaster/sandboxwin.cpp
@@ -1,14 +1,16 @@
// Copyright Epic Games, Inc. All Rights Reserved.
-// AppContainerLaunch.cpp
-#include <Aclapi.h>
-#include <sddl.h>
-#include <stdio.h>
-#include <userenv.h>
-#include <windows.h>
+#include <zencore/windows.h>
-#pragma comment(lib, "userenv.lib")
-#pragma comment(lib, "Advapi32.lib")
+#if ZEN_PLATFORM_WINDOWS
+
+# include <Aclapi.h>
+# include <sddl.h>
+# include <stdio.h>
+# include <userenv.h>
+
+# pragma comment(lib, "userenv.lib")
+# pragma comment(lib, "Advapi32.lib")
// Helper: add (or merge) an ACE for a SID on a directory
DWORD
@@ -161,3 +163,4 @@ zwmain()
FreeSid(appContainerSid);
return ok ? 0 : 1;
}
+#endif