svn commit: r320591 - projects/bsd_rdma_4_9/sys/ofed/include/uapi/rdma

Hans Petter Selasky hselasky at FreeBSD.org
Mon Jul 3 08:30:45 UTC 2017


Author: hselasky
Date: Mon Jul  3 08:30:43 2017
New Revision: 320591
URL: https://svnweb.freebsd.org/changeset/base/320591

Log:
  ibcore: Fix for compiling header files from user-space.
  
  Sponsored by:	Mellanox Technologies

Modified:
  projects/bsd_rdma_4_9/sys/ofed/include/uapi/rdma/mlx4-abi.h
  projects/bsd_rdma_4_9/sys/ofed/include/uapi/rdma/mlx5-abi.h

Modified: projects/bsd_rdma_4_9/sys/ofed/include/uapi/rdma/mlx4-abi.h
==============================================================================
--- projects/bsd_rdma_4_9/sys/ofed/include/uapi/rdma/mlx4-abi.h	Mon Jul  3 08:29:49 2017	(r320590)
+++ projects/bsd_rdma_4_9/sys/ofed/include/uapi/rdma/mlx4-abi.h	Mon Jul  3 08:30:43 2017	(r320591)
@@ -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

Modified: projects/bsd_rdma_4_9/sys/ofed/include/uapi/rdma/mlx5-abi.h
==============================================================================
--- projects/bsd_rdma_4_9/sys/ofed/include/uapi/rdma/mlx5-abi.h	Mon Jul  3 08:29:49 2017	(r320590)
+++ projects/bsd_rdma_4_9/sys/ofed/include/uapi/rdma/mlx5-abi.h	Mon Jul  3 08:30:43 2017	(r320591)
@@ -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,


More information about the svn-src-projects mailing list