Blame SOURCES/0005-Fix-build-error-with-glibc-2.25.patch
|
|
6f8c14 |
From ba3b4127f658cb59ff09939e8de93a06a138dddb Mon Sep 17 00:00:00 2001
|
|
|
6f8c14 |
From: Valentin Vidic <Valentin.Vidic@CARNet.hr>
|
|
|
6f8c14 |
Date: Sat, 25 Nov 2017 09:18:41 +0100
|
|
|
6f8c14 |
Subject: [PATCH] Fix: build error with glibc 2.25
|
|
|
6f8c14 |
|
|
|
6f8c14 |
Add include for makedev, major and minor
|
|
|
6f8c14 |
|
|
|
6f8c14 |
sbd-common.c:268:13: error: In the GNU C Library, "makedev" is defined
|
|
|
6f8c14 |
by <sys/sysmacros.h>. For historical compatibility, it is
|
|
|
6f8c14 |
currently defined by <sys/types.h> as well, but we plan to
|
|
|
6f8c14 |
remove this soon. To use "makedev", include <sys/sysmacros.h>
|
|
|
6f8c14 |
directly. If you did not intend to use a system-defined macro
|
|
|
6f8c14 |
"makedev", you should undefine it after including <sys/types.h>. [-Werror]
|
|
|
6f8c14 |
{makedev(10,130), 0};
|
|
|
6f8c14 |
---
|
|
|
6f8c14 |
src/sbd-common.c | 1 +
|
|
|
6f8c14 |
1 file changed, 1 insertion(+)
|
|
|
6f8c14 |
|
|
|
6f8c14 |
diff --git a/src/sbd-common.c b/src/sbd-common.c
|
|
|
6f8c14 |
index 1d7dbc2..25aaeae 100644
|
|
|
6f8c14 |
--- a/src/sbd-common.c
|
|
|
6f8c14 |
+++ b/src/sbd-common.c
|
|
|
6f8c14 |
@@ -19,6 +19,7 @@
|
|
|
6f8c14 |
#include "sbd.h"
|
|
|
6f8c14 |
#include <sys/reboot.h>
|
|
|
6f8c14 |
#include <sys/types.h>
|
|
|
6f8c14 |
+#include <sys/sysmacros.h>
|
|
|
6f8c14 |
#include <sys/stat.h>
|
|
|
6f8c14 |
#include <pwd.h>
|
|
|
6f8c14 |
#include <unistd.h>
|
|
|
6f8c14 |
--
|
|
|
6f8c14 |
1.8.3.1
|
|
|
6f8c14 |
|