Whamcloud - gitweb
* Landed portals:b_port_step as follows...
[fs/lustre-release.git] / lnet / include / libcfs / portals_lib.h
similarity index 91%
rename from lnet/include/linux/portals_lib.h
rename to lnet/include/libcfs/portals_lib.h
index 8778a52..f6b12c2 100644 (file)
  *
  */
 
-#ifndef _PORTALS_LIB_H
-#define _PORTALS_LIB_H
+#ifndef __LIBCFS_PORTALS_LIB_H__
+#define __LIBCFS_PORTALS_LIB_H__
 
-#ifndef __KERNEL__
-# include <string.h>
-#else 
-# include <asm/types.h>
+#if defined(__linux__)
+#include <libcfs/linux/portals_lib.h>
+#elif defined(__APPLE__)
+#include <libcfs/darwin/portals_lib.h>
+#else
+#error Unsupported Operating System
 #endif
 
 #undef MIN