summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2017-03-08 10:37:38 +0100
committerDavid Tardon <dtardon@redhat.com>2017-03-08 11:57:05 +0100
commit01bf741a79241829b0d5c048e8f45e3cf6914d3e (patch)
treefccd130037299609d5797dac2694d2ca2a0d08eb /desktop
parent895494f2323308df44f6546026f7ed5463b26631 (diff)
WaE: include needed header
"error: In the GNU C Library, "major" is defined by <sys/sysmacros.h>. For historical compatibility, it is currently defined by <sys/types.h> as well, but we plan to remove this soon. To use "major", include <sys/sysmacros.h> directly. If you did not intend to use a system-defined macro "major", you should undefine it after including <sys/types.h>." Change-Id: I7f5741d4c2eae277e316c5fc97aa73b9430fbdc1
Diffstat (limited to 'desktop')
-rw-r--r--desktop/unx/source/pagein.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop/unx/source/pagein.c b/desktop/unx/source/pagein.c
index 56baffa79ca3..a401419fc162 100644
--- a/desktop/unx/source/pagein.c
+++ b/desktop/unx/source/pagein.c
@@ -25,6 +25,7 @@
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
+#include <sys/sysmacros.h>
#include <sys/types.h>
/* do_pagein */