From a10163ec3d72ba0886190bf0c65d7f869edec3e0 Mon Sep 17 00:00:00 2001
From: Nick Gregory <nickmg@google.com>
Date: Mon, 25 Mar 2024 13:40:26 -0400
Subject: [PATCH] Add missing EndpointSecurity dylib

---
 Source/santad/BUILD                                      | 3 +++
 Source/santad/EventProviders/EndpointSecurity/Enricher.h | 1 +
 2 files changed, 4 insertions(+)

diff --git a/Source/santad/BUILD b/Source/santad/BUILD
index fed2f8f4e..c82f78652 100644
--- a/Source/santad/BUILD
+++ b/Source/santad/BUILD
@@ -658,6 +658,9 @@ objc_library(
     name = "EndpointSecurityAPI",
     srcs = ["EventProviders/EndpointSecurity/EndpointSecurityAPI.mm"],
     hdrs = ["EventProviders/EndpointSecurity/EndpointSecurityAPI.h"],
+    sdk_dylibs = [
+        "EndpointSecurity",
+    ],
     deps = [
         ":EndpointSecurityClient",
         ":EndpointSecurityMessage",
diff --git a/Source/santad/EventProviders/EndpointSecurity/Enricher.h b/Source/santad/EventProviders/EndpointSecurity/Enricher.h
index 580574a38..022116cc4 100644
--- a/Source/santad/EventProviders/EndpointSecurity/Enricher.h
+++ b/Source/santad/EventProviders/EndpointSecurity/Enricher.h
@@ -18,6 +18,7 @@
 
 #include "Source/common/SantaCache.h"
 #include "Source/santad/EventProviders/EndpointSecurity/EnrichedTypes.h"
+#include "Source/santad/ProcessTree/process_tree.h"
 
 namespace santa::santad::event_providers::endpoint_security {