diff --git a/machida/Makefile b/machida/Makefile index 065c637d3c..6602c2b5b7 100644 --- a/machida/Makefile +++ b/machida/Makefile @@ -48,6 +48,8 @@ MACHIDA_BUILD = $(MACHIDA_PATH)/build MACHIDA_CPP = $(MACHIDA_PATH)/cpp WALLAROO_LIB = $(wallaroo_path)/lib +PYTHON3_INCLUDES = $(shell python3-config --includes) + # Our top level Makefile has 3 rules that would have been generated for us if # we hadn't turned them off at the top of the Makefile. Here we recreate them # with our own custom rules. This allows the top level commands like @@ -80,7 +82,7 @@ $(MACHIDA_BUILD)/libpython-wallaroo.a: $(MACHIDA_BUILD)/python-wallaroo.o $(MACHIDA_BUILD)/python-wallaroo.o: $(MACHIDA_CPP)/python-wallaroo.c $(QUIET)mkdir -p $(MACHIDA_BUILD) - $(QUIET)cc -g -o $(MACHIDA_BUILD)/python-wallaroo.o -c $(MACHIDA_CPP)/python-wallaroo.c + $(QUIET)cc -g -o $(MACHIDA_BUILD)/python-wallaroo.o $(PYTHON3_INCLUDES) -c $(MACHIDA_CPP)/python-wallaroo.c # end of prevent rules from being evaluated/included multiple times endif diff --git a/machida/cpp/python-wallaroo.c b/machida/cpp/python-wallaroo.c index c9e25ce845..93dc9bb486 100644 --- a/machida/cpp/python-wallaroo.c +++ b/machida/cpp/python-wallaroo.c @@ -16,7 +16,7 @@ Copyright 2017 The Wallaroo Authors. */ -#include +#include PyObject *g_user_deserialization_fn;