X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lnet%2Finclude%2Flibcfs%2Flibcfs.h;h=ecc708602f532015d758edbbe27e001a6244f171;hp=2fabeab4b109b16d6648efbab66744ac2ac5c0df;hb=da5f2db0944530f2b30782c019a8d5d20677d02d;hpb=d63c9fc5bdf2d9bc09d799295d8077a3aab217cb 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