Skip to content
Snippets Groups Projects
Commit da5f2db0 authored by jacob's avatar jacob
Browse files

remove arch symlink

parent d63c9fc5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -7,7 +7,13 @@
#define PORTAL_DEBUG
#include <libcfs/libcfs.h>
#include <libcfs/arch/kp30.h>
#if defined(__linux__)
#include <libcfs/linux/kp30.h>
#elif defined(__APPLE__)
#include <libcfs/darwin/kp30.h>
#else
#error Unsupported operating system
#endif
#ifdef __KERNEL__
......
......@@ -8,7 +8,14 @@
#define __attribute__(x)
#endif
#include <libcfs/arch/libcfs.h>
#if defined(__linux__)
#include <libcfs/linux/libcfs.h>
#elif defined(__APPLE__)
#include <libcfs/darwin/libcfs.h>
#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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment