summaryrefslogtreecommitdiff
path: root/metadata/metatree.c
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2017-01-02 11:31:35 +0100
committerOndrej Holy <oholy@redhat.com>2017-01-06 16:25:51 +0100
commit3424bef7ef71dc3a8c2c71310671cd6d39e7b3e7 (patch)
tree55cfade042572c6839c589ed6598391604ee761a /metadata/metatree.c
parentbd4425883e07b9b83289f7149b75bc1a69d6a369 (diff)
downloadgvfs-3424bef7ef71dc3a8c2c71310671cd6d39e7b3e7.tar.gz
metadata: Include headers for device number functionality
The implicit sys/sysmacros.h (resp. sys/mkdev.h) includes via sys/types.h is being deprecated. Use AC_HEADER_MAJOR and include necessary header files for major(), minor(), and makedev() functions. https://bugzilla.gnome.org/show_bug.cgi?id=776213
Diffstat (limited to 'metadata/metatree.c')
-rw-r--r--metadata/metatree.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/metadata/metatree.c b/metadata/metatree.c
index 89942cb5..0ba9dbab 100644
--- a/metadata/metatree.c
+++ b/metadata/metatree.c
@@ -18,6 +18,12 @@
#include "metadata-dbus.h"
#include "gvfsdaemonprotocol.h"
+#if MAJOR_IN_MKDEV
+#include <sys/mkdev.h>
+#elif MAJOR_IN_SYSMACROS
+#include <sys/sysmacros.h>
+#endif
+
#define MAGIC "\xda\x1ameta"
#define MAGIC_LEN 6
#define MAJOR_VERSION 1