infra: quickfix Redhat/openvz builds

This commit is contained in:
Thomas Schoebel-Theuer 2014-07-14 17:27:11 +02:00
parent 4a2ee37b98
commit 3a6ff3d2c8
1 changed files with 5 additions and 1 deletions

View File

@ -28,7 +28,11 @@
// remove_this
#include <linux/wait.h>
#ifndef __WAIT_ATOMIC_T_KEY_INITIALIZER
#include <linux/version.h>
/* 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