diff --git a/include/eigenpy/registration.hpp b/include/eigenpy/registration.hpp
index 5f4458336dcba2a86a864594608367d5d3eb832a..e001033c58ab4dfd09cfb52b31195bb77ddf2328 100644
--- a/include/eigenpy/registration.hpp
+++ b/include/eigenpy/registration.hpp
@@ -3,11 +3,11 @@
  * Copyright 2018-2019, INRIA
  */
 
+#include "eigenpy/fwd.hpp"
+
 #ifndef __eigenpy_registration_hpp__
 #define __eigenpy_registration_hpp__
 
-#include "eigenpy/fwd.hpp"
-
 namespace eigenpy
 {
   ///
diff --git a/unittest/CMakeLists.txt b/unittest/CMakeLists.txt
index 8b2160de28cda51b5d4a3ebb97a3c90ae32a5496..ba18c9c60dc2beac50415faba1c8a34422e4d22c 100644
--- a/unittest/CMakeLists.txt
+++ b/unittest/CMakeLists.txt
@@ -29,6 +29,7 @@ ADD_LIB_UNIT_TEST(matrix)
 ADD_LIB_UNIT_TEST(geometry)
 ADD_LIB_UNIT_TEST(complex)
 ADD_LIB_UNIT_TEST(return_by_ref)
+ADD_LIB_UNIT_TEST(include)
 IF(NOT ${EIGEN3_VERSION} VERSION_LESS "3.2.0")
   ADD_LIB_UNIT_TEST(eigen_ref)
 ENDIF()
diff --git a/unittest/include.cpp b/unittest/include.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..2c9f9baf3e5bd0bdc182d02cdcc9dab5eaeaf463
--- /dev/null
+++ b/unittest/include.cpp
@@ -0,0 +1,9 @@
+/*
+ * Copyright 2021, CNRS
+ */
+
+// Including this header should not raise a build error
+
+#include "eigenpy/registration.hpp"
+
+BOOST_PYTHON_MODULE(include) {}