ibcore: Fix for compiling header files from user-space.

Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2017-07-03 08:30:43 +00:00
parent 0faccd643c
commit c19d65049e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/bsd_rdma_4_9/; revision=320591
2 changed files with 8 additions and 0 deletions

View File

@ -34,7 +34,11 @@
#ifndef MLX4_ABI_USER_H
#define MLX4_ABI_USER_H
#ifdef _KERNEL
#include <linux/types.h>
#else
#include <infiniband/types.h>
#endif
/*
* Increment this value if any changes that break userspace ABI

View File

@ -33,7 +33,11 @@
#ifndef MLX5_ABI_USER_H
#define MLX5_ABI_USER_H
#ifdef _KERNEL
#include <linux/types.h>
#else
#include <infiniband/types.h>
#endif
enum {
MLX5_QP_FLAG_SIGNATURE = 1 << 0,