diff options
author | David Tardon <dtardon@redhat.com> | 2017-03-08 10:37:38 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-09-14 16:07:24 +0200 |
commit | e239a3a32791f3232b1a5e0ac5cda76f6a9420be (patch) | |
tree | 758157e6024d325a149288b38f5b36a48822ccd1 | |
parent | 74a8c6e6f0d426c521b6d5d02eefd87289b79839 (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
(cherry picked from commit 01bf741a79241829b0d5c048e8f45e3cf6914d3e)
Reviewed-on: https://gerrit.libreoffice.org/42246
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit 831c187d831972ed96ac4d535ef5773503c3db00)
-rw-r--r-- | desktop/unx/source/pagein.c | 1 |
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 */ |