diff --git a/sys/ofed/include/uapi/rdma/mlx4-abi.h b/sys/ofed/include/uapi/rdma/mlx4-abi.h index af431752655..daa8e984027 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 f5d0f4e83b5..2d5e4629897 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,