From 40440f2466d2aa2af920d22cde0cbee210be3774 Mon Sep 17 00:00:00 2001
From: Philipp Jungkamp <p.jungkamp@gmx.net>
Date: Mon, 26 Aug 2024 14:11:45 +0200
Subject: [PATCH] ethercat: Shuffle includes to fix failing Nix builds

Signed-off-by: Philipp Jungkamp <p.jungkamp@gmx.net>
---
 include/villas/api.hpp | 2 --
 lib/nodes/ethercat.cpp | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/include/villas/api.hpp b/include/villas/api.hpp
index ff3f53f86..8e13cdd22 100644
--- a/include/villas/api.hpp
+++ b/include/villas/api.hpp
@@ -14,8 +14,6 @@
 #include <list>
 #include <thread>
 
-#include <libwebsockets.h>
-
 #include <villas/common.hpp>
 #include <villas/exceptions.hpp>
 #include <villas/log.hpp>
diff --git a/lib/nodes/ethercat.cpp b/lib/nodes/ethercat.cpp
index 11dbba864..3ccebe843 100644
--- a/lib/nodes/ethercat.cpp
+++ b/lib/nodes/ethercat.cpp
@@ -11,8 +11,8 @@
 
 #include <villas/exceptions.hpp>
 #include <villas/node_compat.hpp>
-#include <villas/nodes/ethercat.hpp>
 #include <villas/super_node.hpp>
+#include <villas/nodes/ethercat.hpp>
 #include <villas/utils.hpp>
 
 using namespace villas;