Blame SOURCES/0028-osdep-Force-define-F_OFD_GETLK-RHEL-only.patch

383d26
From 0901cd0ef66131ea6fe93654b0ceb1feaad9a0e5 Mon Sep 17 00:00:00 2001
383d26
From: Fam Zheng <famz@redhat.com>
383d26
Date: Thu, 12 Oct 2017 13:54:45 +0200
383d26
Subject: osdep: Force define F_OFD_GETLK (RHEL only)
383d26
383d26
RH-Author: Fam Zheng <famz@redhat.com>
383d26
Message-id: <20171012135445.4214-1-famz@redhat.com>
383d26
Patchwork-id: 77220
383d26
O-Subject: [RHV7.5 qemu-kvm-ma PATCH] osdep: Force define F_OFD_GETLK (RHEL only)
383d26
Bugzilla: 1378241
383d26
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
383d26
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
383d26
RH-Acked-by: Thomas Huth <thuth@redhat.com>
383d26
383d26
BZ: 1378241
383d26
Brew: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=14254218
383d26
383d26
glibc is not ready yet (BZ 1461231, which is deferred to 7.6 due to
383d26
capacity), so the OFD constants are not defined in the system headers we
383d26
pull in. (They do exist in the headers of latest kernel-headers package,
383d26
but we don't want to include that anyway.)
383d26
383d26
Actually the constants are all that are missing before we can call image
383d26
locking done in 7.5, so there is no reason to wait for glibc.
383d26
383d26
This patch can be reverted once the new glibc headers are in place.
383d26
383d26
Signed-off-by: Fam Zheng <famz@redhat.com>
383d26
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
383d26
(cherry picked from commit ac74b9067d079b03f3fe4236270f9eb34121009b)
383d26
(cherry picked from commit ae5b5b95b3a6ba4d1d9fb424cf95205e43f2ad67)
383d26
(cherry picked from commit f380fac7d927459c3675dabd125be8a379f43a2c)
383d26
(cherry picked from commit fb92cc1c98ff118afbc18ca1c22379ab3cf76f7a)
383d26
---
383d26
 util/osdep.c | 5 +++++
383d26
 1 file changed, 5 insertions(+)
383d26
383d26
diff --git a/util/osdep.c b/util/osdep.c
383d26
index a73de0e..0dbe6ec 100644
383d26
--- a/util/osdep.c
383d26
+++ b/util/osdep.c
383d26
@@ -23,6 +23,11 @@
383d26
  */
383d26
 #include "qemu/osdep.h"
383d26
 
383d26
+#ifndef F_OFD_SETLK
383d26
+#define F_OFD_GETLK    36
383d26
+#define F_OFD_SETLK    37
383d26
+#endif
383d26
+
383d26
 /* Needed early for CONFIG_BSD etc. */
383d26
 
383d26
 #ifdef CONFIG_SOLARIS
383d26
-- 
383d26
1.8.3.1
383d26