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

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