From: jacob Date: Sat, 5 Feb 2005 00:53:16 +0000 (+0000) Subject: remove arch symlink X-Git-Tag: v1_7_100~1635 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=da5f2db0944530f2b30782c019a8d5d20677d02d;hp=d63c9fc5bdf2d9bc09d799295d8077a3aab217cb;ds=sidebyside remove arch symlink --- diff --git a/lnet/autoMakefile.am b/lnet/autoMakefile.am index 50d8298..b49b8d4 100644 --- a/lnet/autoMakefile.am +++ b/lnet/autoMakefile.am @@ -6,20 +6,5 @@ SUBDIRS = libcfs portals knals unals router tests doc utils include \ autoconf -sources: include/libcfs/arch +sources: $(MAKE) sources -C libcfs - -all-recursive: include/libcfs/arch - -include/libcfs/arch: - case `uname` in \ - Linux) \ - ln -s linux include/libcfs/arch \ - ;; \ - Darwin) \ - ln -s darwin include/libcfs/arch \ - ;; \ - *) \ - echo "Platform `uname` is not supported" \ - ;; \ - esac diff --git a/lnet/include/libcfs/kp30.h b/lnet/include/libcfs/kp30.h index cdd1bff..6fd88e7 100644 --- a/lnet/include/libcfs/kp30.h +++ b/lnet/include/libcfs/kp30.h @@ -7,7 +7,13 @@ #define PORTAL_DEBUG #include -#include +#if defined(__linux__) +#include +#elif defined(__APPLE__) +#include +#else +#error Unsupported operating system +#endif #ifdef __KERNEL__ diff --git a/lnet/include/libcfs/libcfs.h b/lnet/include/libcfs/libcfs.h index 2fabeab..ecc7086 100644 --- a/lnet/include/libcfs/libcfs.h +++ b/lnet/include/libcfs/libcfs.h @@ -8,7 +8,14 @@ #define __attribute__(x) #endif -#include +#if defined(__linux__) +#include +#elif defined(__APPLE__) +#include +#else +#error Unsupported operating system. +#endif + #include "curproc.h" #define PORTAL_DEBUG @@ -90,6 +97,7 @@ extern unsigned int portal_printk; #define D_READA 0x00400000 /* read-ahead */ #define D_MMAP 0x00800000 #define D_CONFIG 0x01000000 +#define D_CONSOLE 0x02000000 /* If you change these values, please keep these files up to date... * portals/utils/debug.c * utils/lconf