From 35c278e525377723028a1417a705d28517fa183f Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sat, 10 Jun 2017 17:00:25 +0200 Subject: [PATCH] Fix build with future glibc (major/minor macros), BSD compatible Summary: Also adding sys/types.h which is not implicitly included from all over. Thanks-to: [ade] in #kde-devel See also: https://sourceware.org/ml/libc-alpha/2015-11/msg00452.html https://git.reviewboard.kde.org/r/127662/ BUG: 376505 Reviewers: #plasma, graesslin Reviewed By: #plasma, graesslin Subscribers: graesslin, plasma-devel, kwin, #kwin, adridg Tags: #plasma Differential Revision: https://phabricator.kde.org/D6175 --- logind.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/logind.cpp b/logind.cpp index aab999a8f0..39b37c07a7 100644 --- a/logind.cpp +++ b/logind.cpp @@ -29,6 +29,10 @@ along with this program. If not, see . #include #include +#include +#ifndef major +#include +#endif #include #include "utils.h"