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

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