int0x21 / rpms / dlm

Forked from rpms/dlm 4 years ago
Clone

Blame SOURCES/0002-New-location-of-major-and-minor-macros-for-glibc-2.2.patch

11c6eb
From 3a5d91435a557932b2ff674ec8e7c22e880da42f Mon Sep 17 00:00:00 2001
11c6eb
From: "Richard W.M. Jones" <rjones@redhat.com>
11c6eb
Date: Sat, 24 Mar 2018 08:55:06 +0000
11c6eb
Subject: [PATCH] New location of major() and minor() macros for glibc 2.27.
11c6eb
11c6eb
glibc 2.27 moves the major() and minor() macros to the
11c6eb
<sys/sysmacros.h> header file.
11c6eb
11c6eb
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
11c6eb
---
11c6eb
 dlm_controld/dlm_daemon.h | 1 +
11c6eb
 libdlm/libdlm.c           | 1 +
11c6eb
 2 files changed, 2 insertions(+)
11c6eb
11c6eb
diff --git a/dlm_controld/dlm_daemon.h b/dlm_controld/dlm_daemon.h
11c6eb
index 6cb0f11c1335..731818c53c9b 100644
11c6eb
--- a/dlm_controld/dlm_daemon.h
11c6eb
+++ b/dlm_controld/dlm_daemon.h
11c6eb
@@ -40,6 +40,7 @@
11c6eb
 #include <sched.h>
11c6eb
 #include <signal.h>
11c6eb
 #include <dirent.h>
11c6eb
+#include <sys/sysmacros.h>
11c6eb
 
11c6eb
 #include <corosync/cpg.h>
11c6eb
 
11c6eb
diff --git a/libdlm/libdlm.c b/libdlm/libdlm.c
11c6eb
index a9e6195579aa..ebfba4576fa8 100644
11c6eb
--- a/libdlm/libdlm.c
11c6eb
+++ b/libdlm/libdlm.c
11c6eb
@@ -24,6 +24,7 @@
11c6eb
 #include <stdio.h>
11c6eb
 #include <dirent.h>
11c6eb
 #include <linux/major.h>
11c6eb
+#include <sys/sysmacros.h>
11c6eb
 #ifdef HAVE_SELINUX
11c6eb
 #include <selinux/selinux.h>
11c6eb
 #endif
11c6eb
-- 
11c6eb
2.7.5
11c6eb