Skip to content

Commit

Permalink
new(make): patch plugin_api.h header include
Browse files Browse the repository at this point in the history
Signed-off-by: Gianmatteo Palmieri <[email protected]>
  • Loading branch information
mrgian authored and poiana committed Feb 12, 2024
1 parent 3c42154 commit dd0c168
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#

CURL ?= curl
PATCH ?= patch

FALCOSECURITY_LIBS_REVISION ?= 3f44a0741707d3b0e5cd83896d765ea18256dbb3
FALCOSECURITY_LIBS_REPO ?= falcosecurity/libs
Expand All @@ -34,7 +35,8 @@ all: examples

.PHONY: clean
clean: $(examples_clean)
+rm -fr $(DEPS_INCLUDEDIR) $(LIBDIR) $(OBJFILES)
+rm -fr $(DEPS_INCLUDEDIR)/plugin_api.h $(DEPS_INCLUDEDIR)/plugin_types.h $(DEPS_INCLUDEDIR)/nlohmann/json.hpp
+rm -fr $(LIBDIR) $(OBJFILES)

.PHONY: format
format:
Expand Down Expand Up @@ -62,6 +64,7 @@ $(DEPS_INCLUDEDIR)/plugin_types.h: $(DEPS_INCLUDEDIR)

$(DEPS_INCLUDEDIR)/plugin_api.h: $(DEPS_INCLUDEDIR)
+$(CURL) -Lso $(DEPS_INCLUDEDIR)/plugin_api.h $(DEPS_PLUGIN_LIB_URL)/plugin_api.h
+$(PATCH) -p1 < $(DEPS_INCLUDEDIR)/plugin_api.patch

$(DEPS_INCLUDEDIR)/nlohmann/json.hpp: $(DEPS_INCLUDEDIR)
+$(CURL) -sLo $(DEPS_INCLUDEDIR)/nlohmann/json.hpp https://github.com/nlohmann/json/releases/download/v3.10.2/json.hpp
Expand Down
13 changes: 13 additions & 0 deletions include/falcosecurity/internal/deps/plugin_api.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/include/falcosecurity/internal/deps/plugin_api.h b/include/falcosecurity/internal/deps/plugin_api.h
index c4f91ca..8adab04 100644
--- a/include/falcosecurity/internal/deps/plugin_api.h
+++ b/include/falcosecurity/internal/deps/plugin_api.h
@@ -18,7 +18,7 @@ limitations under the License.

#pragma once

-#include <plugin/plugin_types.h>
+#include "plugin_types.h"

#ifdef __cplusplus
extern "C" {

0 comments on commit dd0c168

Please sign in to comment.