After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 776532 - build warnings w/newer glibc
build warnings w/newer glibc
Status: RESOLVED DUPLICATE of bug 776213
Product: gvfs
Classification: Core
Component: build
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2016-12-27 23:45 UTC by Mike Frysinger
Modified: 2017-01-02 10:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mike Frysinger 2016-12-27 23:45:09 UTC
the implicit sys/sysmacros.h include via sys/types.h is being deprecated.  easy fix is to include sys/sysmacros.h directly which should work under Linux C libs.  if portability is a concern, then AC_HEADER_MAJOR can be used.

https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Particular-Headers.html

--- a/metadata/meta-daemon.c
+++ b/metadata/meta-daemon.c
@@ -27,6 +27,7 @@
 #include <glib/gstdio.h>
 #include <locale.h>
 #include <stdlib.h>
+#include <sys/sysmacros.h>
 #include "metatree.h"
 #include "gvfsdaemonprotocol.h"
 #include "metadata-dbus.h"
--- a/metadata/metatree.c
+++ b/metadata/metatree.c
@@ -1,4 +1,5 @@
 #include "config.h"
+#include <sys/sysmacros.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/mman.h>
Comment 1 Ondrej Holy 2017-01-02 10:15:15 UTC
Thanks for the report! It is more-or-less duplicate of Bug 776213. I will fix the patch attached there and push...

*** This bug has been marked as a duplicate of bug 776213 ***