You've already forked gitified_old_clb_svn
25 lines
710 B
C
25 lines
710 B
C
|
|
#include <linux/types.h>
|
|
#include <linux/string.h>
|
|
#include <linux/errno.h>
|
|
#include <asm/byteorder.h>
|
|
|
|
/*
|
|
* The default installed /usr/include/linux stuff misses the __KERNEL__ parts.
|
|
* For libsdbfs it means we won't get uint32_t and similar types.
|
|
*
|
|
* So, check if we got the information we need before strange errors happen.
|
|
* The DECLARE_BITMAP macro is in <linux/types.h> since the epoch, but it
|
|
* is not installed in /usr/include/linux/types.h, so use it to check.
|
|
*/
|
|
#ifndef DECLARE_BITMAP
|
|
# error "Please point LINUX to a source tree if you define __KERNEL__"
|
|
#endif
|
|
|
|
#define SDB_KERNEL 1
|
|
#define SDB_USER 0
|
|
#define SDB_FREESTAND 0
|
|
|
|
|
|
#define sdb_print(format, ...) printk(format, __VA_ARGS__)
|