From: Michel Normand Subject: libcxl sysmacros Date: Thu, 08 Jun 2017 11:23:35 +0200 to avoid warning like: === libcxl.c:250:13: warning: In the GNU C Library, "major" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "major", include directly. If you did not intend to use a system-defined macro "major", you should undefine it after including . return asprintf(bufp, "/sys/dev/char/%i:%i", major(sb.st_rdev), === Signed-off-by: Michel Normand --- libcxl.c | 1 + 1 file changed, 1 insertion(+) Index: libcxl-1.5/libcxl.c =================================================================== --- libcxl-1.5.orig/libcxl.c +++ libcxl-1.5/libcxl.c @@ -32,6 +32,7 @@ #include #include +#include #include #include #include