From 9ada8baca65da11a355970d02df8511f1b649d5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 30 Jul 2017 21:20:36 +0200 Subject: [PATCH] Turn around include order for major/minor Although we made KWin compile with newer include requirement for major and minor in gnu libc, we still get the warning that it's deprecated. So let's try to turn the include order around. That should fix the warning and hopefully still compile on non gnu libc (e.g. FreeBsd). If it fails, we need to add a cmakedefine for the header. --- logind.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"