Commit 9ada8bac authored by Martin Flöser's avatar Martin Flöser

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.
parent acedee21
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment