Whamcloud - gitweb
LU-6245 uapi: move libcfs/lnet UAPI header into own uapi directory
[fs/lustre-release.git] / lnet / include / uapi / linux / lnet / lnetctl.h
similarity index 92%
rename from lnet/include/lnet/lnetctl.h
rename to lnet/include/uapi/linux/lnet/lnetctl.h
index 3d7fd27..c39ca43 100644 (file)
 /*
  * Copyright (c) 2014, Intel Corporation.
  */
-#ifndef _LNETCTL_H_
-#define _LNETCTL_H_
+#ifndef __UAPI_LNETCTL_H_
+#define __UAPI_LNETCTL_H_
 
-#include <lnet/types.h>
+/*
+ * This is due to us being out of kernel and the way the OpenSFS branch
+ * handles CFLAGS.
+ */
+#ifdef __KERNEL__
+# include <uapi/linux/lnet/lnet-types.h>
+#else
+# include <linux/lnet/lnet-types.h>
+#endif
 
 /** \addtogroup lnet_fault_simulation
  * @{ */