From 03be837c7d0b9be393ffb555879c49e6212fbd0f Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Thu, 25 Jan 2018 13:05:27 +0100 Subject: [PATCH] mounted.ocfs2: use include for makedev MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mounted.c: In function ‘build_partition_list’: mounted.c:354:13: warning: In the GNU C Library, "makedev" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "makedev", include directly. If you did not intend to use a system-defined macro "makedev", you should undefine it after including . makedev(major, minor), &devname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- mounted.ocfs2/mounted.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mounted.ocfs2/mounted.c b/mounted.ocfs2/mounted.c index 1576f902..090ab4ed 100644 --- a/mounted.ocfs2/mounted.c +++ b/mounted.ocfs2/mounted.c @@ -25,7 +25,7 @@ #define _LARGEFILE64_SOURCE #define _GNU_SOURCE /* Because libc really doesn't want us using O_DIRECT? */ -#include +#include #include #include #include -- 2.17.0