Whamcloud - gitweb
* Landed portals:b_port_step as follows...
[fs/lustre-release.git] / lnet / include / libcfs / lltrace.h
similarity index 90%
rename from lnet/include/lnet/lltrace.h
rename to lnet/include/libcfs/lltrace.h
index 3e01df1..4f386c5 100644 (file)
@@ -4,25 +4,16 @@
  * Compile with:
  * cc -I../../portals/include -o fio fio.c -L../../portals/linux/utils -lptlctl
  */
-#ifndef __LTRACE_H_
-#define __LTRACE_H_
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <getopt.h>
-#include <string.h>
-#include <errno.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <sys/time.h>
-#include <portals/types.h>
-#include <linux/kp30.h>
-#include <portals/ptlctl.h>
-#include <linux/limits.h>
-#include <asm/page.h>
-#include <linux/version.h>
+#ifndef __LIBCFS_LLTRACE_H__
+#define __LIBCFS_LLTRACE_H__
+
+#if defined(__linux__)
+#include <libcfs/linux/lltrace.h>
+#elif defined(__APPLE__)
+#include <libcfs/darwin/lltrace.h>
+#else
+#error Unsupported Operating System
+#endif
 
 static inline int ltrace_write_file(char* fname)
 {