[Libreoffice-commits] core.git: desktop/unx

David Tardon dtardon at redhat.com
Wed Mar 8 10:57:41 UTC 2017


 desktop/unx/source/pagein.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 01bf741a79241829b0d5c048e8f45e3cf6914d3e
Author: David Tardon <dtardon at redhat.com>
Date:   Wed Mar 8 10:37:38 2017 +0100

    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

diff --git a/desktop/unx/source/pagein.c b/desktop/unx/source/pagein.c
index 56baffa..a401419 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 */


More information about the Libreoffice-commits mailing list