diff --git a/logind.cpp b/logind.cpp
index 39b37c07a7..8a92ae02d1 100644
--- a/logind.cpp
+++ b/logind.cpp
@@ -29,9 +29,9 @@ along with this program. If not, see .
#include
#include
-#include
-#ifndef major
#include
+#ifndef major
+#include
#endif
#include
#include "utils.h"