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.
This commit is contained in:
Martin Gräßlin 2017-07-30 21:20:36 +02:00
parent acedee21a5
commit 9ada8baca6

View file

@ -29,9 +29,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QDBusMetaType>
#include <sys/stat.h>
#include <sys/types.h>
#ifndef major
#include <sys/sysmacros.h>
#ifndef major
#include <sys/types.h>
#endif
#include <unistd.h>
#include "utils.h"