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:
parent
acedee21a5
commit
9ada8baca6
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue