From ba3b4127f658cb59ff09939e8de93a06a138dddb Mon Sep 17 00:00:00 2001
From: Valentin Vidic <Valentin.Vidic@CARNet.hr>
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 <sys/sysmacros.h>. For historical compatibility, it is
currently defined by <sys/types.h> as well, but we plan to
remove this soon. To use "makedev", include <sys/sysmacros.h>
directly. If you did not intend to use a system-defined macro
"makedev", you should undefine it after including <sys/types.h>. [-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 <sys/reboot.h>
#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <sys/stat.h>
#include <pwd.h>
#include <unistd.h>
--
1.8.3.1