2006-12-06 17:26:14 -06:00
|
|
|
/* silliness to get dev_t defined as the kernel defines it */
|
|
|
|
/* glibc uses a different dev_t */
|
|
|
|
|
|
|
|
#include <linux/posix_types.h>
|
2006-12-06 17:26:16 -06:00
|
|
|
#include <linux/version.h>
|
|
|
|
|
2006-12-06 17:26:18 -06:00
|
|
|
#ifndef KERNEL_VERSION
|
|
|
|
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
|
|
|
|
#endif
|
|
|
|
|
2006-12-06 17:26:16 -06:00
|
|
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(1,3,78)
|
|
|
|
/* for i386 - alpha uses unsigned int */
|
|
|
|
#define my_dev_t unsigned short
|
|
|
|
#else
|
|
|
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,68)
|
2006-12-06 17:26:14 -06:00
|
|
|
#define my_dev_t __kernel_dev_t
|
2006-12-06 17:26:16 -06:00
|
|
|
#else
|
|
|
|
#define my_dev_t __kernel_old_dev_t
|
|
|
|
#endif
|
|
|
|
#endif
|