From 3a6ff3d2c89ba317b6e45761b6f27d0aa7c93a56 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Mon, 14 Jul 2014 17:27:11 +0200 Subject: [PATCH] infra: quickfix Redhat/openvz builds --- kernel/sy_old/sy_generic.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/sy_old/sy_generic.c b/kernel/sy_old/sy_generic.c index fdea2ba5..b54af6a4 100644 --- a/kernel/sy_old/sy_generic.c +++ b/kernel/sy_old/sy_generic.c @@ -28,7 +28,11 @@ // remove_this #include -#ifndef __WAIT_ATOMIC_T_KEY_INITIALIZER +#include +/* FIXME: some Redhat/openvz kernels seem to have both (backporting etc). + * The folling is an incomplete quickfix / workaround. TBD. + */ +#if !defined(__WAIT_ATOMIC_T_KEY_INITIALIZER) || defined(RHEL_RELEASE) #define HAS_VFS_READDIR #endif