Include <sys/sysmacros.h> for major()/minor()

GNU libc pulls them implicitly from <sys/types.h>, but it will not do
that at some point in the future.  Hence, include <sys/sysmacros.h>
explicitly.
This commit is contained in:
Pino Toscano
2016-08-29 18:13:57 +02:00
parent f14dd26d36
commit 57c327538e
6 changed files with 6 additions and 0 deletions

View File

@@ -31,6 +31,7 @@
#include <assert.h>
#include <time.h>
#include <libintl.h>
#include <sys/sysmacros.h>
#include "human.h"

View File

@@ -25,6 +25,7 @@
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
#include "guestfs_protocol.h"
#include "daemon.h"

View File

@@ -32,6 +32,7 @@
#include <time.h>
#include <libintl.h>
#include <sys/wait.h>
#include <sys/sysmacros.h>
#include "c-ctype.h"
#include "human.h"

View File

@@ -21,6 +21,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/sysmacros.h>
#include <caml/mlvalues.h>

View File

@@ -32,6 +32,7 @@
#include <libintl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
/* errors in <gtk.h> */
#pragma GCC diagnostic push

View File

@@ -26,6 +26,7 @@
#include <sys/wait.h>
#include <string.h>
#include <libintl.h>
#include <sys/sysmacros.h>
#if HAVE_FUSE
/* See <attr/xattr.h> */