From c19d65049e1bb2e1b8176f09dada0ad8e3c47e1a Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Mon, 3 Jul 2017 08:30:43 +0000 Subject: [PATCH] ibcore: Fix for compiling header files from user-space. Sponsored by: Mellanox Technologies --- sys/ofed/include/uapi/rdma/mlx4-abi.h | 4 ++++ sys/ofed/include/uapi/rdma/mlx5-abi.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/sys/ofed/include/uapi/rdma/mlx4-abi.h b/sys/ofed/include/uapi/rdma/mlx4-abi.h index af431752655c..daa8e984027e 100644 --- a/sys/ofed/include/uapi/rdma/mlx4-abi.h +++ b/sys/ofed/include/uapi/rdma/mlx4-abi.h @@ -34,7 +34,11 @@ #ifndef MLX4_ABI_USER_H #define MLX4_ABI_USER_H +#ifdef _KERNEL #include +#else +#include +#endif /* * Increment this value if any changes that break userspace ABI diff --git a/sys/ofed/include/uapi/rdma/mlx5-abi.h b/sys/ofed/include/uapi/rdma/mlx5-abi.h index f5d0f4e83b59..2d5e4629897e 100644 --- a/sys/ofed/include/uapi/rdma/mlx5-abi.h +++ b/sys/ofed/include/uapi/rdma/mlx5-abi.h @@ -33,7 +33,11 @@ #ifndef MLX5_ABI_USER_H #define MLX5_ABI_USER_H +#ifdef _KERNEL #include +#else +#include +#endif enum { MLX5_QP_FLAG_SIGNATURE = 1 << 0,