diff --git a/xs/xsp/Point.xsp b/xs/xsp/Point.xsp
index 1380c01f1..f4735cf1f 100644
--- a/xs/xsp/Point.xsp
+++ b/xs/xsp/Point.xsp
@@ -3,6 +3,8 @@
 %{
 #include <myinit.h>
 #include "Point.hpp"
+#include "Polygon.hpp"
+#include "Polyline.hpp"
 %}
 
 %name{Slic3r::Point} class Point {