[Libreoffice-commits] online.git: kit/Kit.cpp

Rene Engelhard rene at rene-engelhard.de
Sun Nov 26 13:15:59 UTC 2017


 kit/Kit.cpp |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit af7685e49907f5b520ee9288b12f82d633ce9423
Author: Rene Engelhard <rene at rene-engelhard.de>
Date:   Sun Nov 26 13:14:24 2017 +0000

    include <sys/sysmacros.h>
    
    kit/Kit.cpp:1688:13: warning: In the GNU C Library, "makedev" 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 "makedev", include <sys/sysmacros.h>
     directly. If you did not intend to use a system-defined macro
     "makedev", you should undefine it after including <sys/types.h>.

diff --git a/kit/Kit.cpp b/kit/Kit.cpp
index df2d6ce5..aae8acf6 100644
--- a/kit/Kit.cpp
+++ b/kit/Kit.cpp
@@ -17,6 +17,9 @@
 #include <ftw.h>
 #include <malloc.h>
 #include <sys/capability.h>
+#ifdef __GLIBC__
+#include <sys/sysmacros.h>
+#endif
 #include <unistd.h>
 #include <utime.h>
 #include <sys/sysmacros.h>


More information about the Libreoffice-commits mailing list