From ba3b4127f658cb59ff09939e8de93a06a138dddb Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Sat, 25 Nov 2017 09:18:41 +0100 Subject: [PATCH] Fix: build error with glibc 2.25 Add include for makedev, major and minor sbd-common.c:268:13: error: 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 . [-Werror] {makedev(10,130), 0}; --- src/sbd-common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sbd-common.c b/src/sbd-common.c index 1d7dbc2..25aaeae 100644 --- a/src/sbd-common.c +++ b/src/sbd-common.c @@ -19,6 +19,7 @@ #include "sbd.h" #include #include +#include #include #include #include -- 1.8.3.1