]> git.proxmox.com Git - mirror_spl-debian.git/blame - include/sys/types.h
Resolve incomplete type when building against 2.6.26
[mirror_spl-debian.git] / include / sys / types.h
CommitLineData
09b414e8 1#ifndef _SPL_TYPES_H
2#define _SPL_TYPES_H
f1ca4da6 3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
dbb484ec 8#include <linux/types.h>
14c5326c 9#include <sys/sysmacros.h>
57d86234 10#include "spl_config.h"
dbb484ec 11
57d86234 12#ifndef HAVE_UINTPTR_T
f1ca4da6 13typedef unsigned long uintptr_t;
57d86234 14#endif
15
57d86234 16typedef enum { B_FALSE=0, B_TRUE=1 } boolean_t;
f1ca4da6 17typedef unsigned long intptr_t;
18typedef unsigned long ulong_t;
19typedef unsigned int uint_t;
20typedef unsigned char uchar_t;
21typedef unsigned long long u_longlong_t;
22typedef unsigned long long u_offset_t;
23typedef unsigned long long rlim64_t;
24typedef long long longlong_t;
25typedef long long offset_t;
3d4ea0ce 26typedef struct task_struct kthread_t;
f1ca4da6 27typedef struct vmem { } vmem_t;
28typedef short pri_t;
dbb484ec 29typedef struct timespec timestruc_t; /* definition per SVr4 */
79b31f36 30typedef struct timespec timespec_t;
dbb484ec 31typedef longlong_t hrtime_t;
a713518f 32typedef unsigned short ushort_t;
33typedef u_longlong_t len_t;
34typedef longlong_t diskaddr_t;
35typedef ushort_t o_mode_t;
73e540a0 36typedef uint_t major_t;
37typedef uint_t minor_t;
f1ca4da6 38
09b414e8 39#endif /* _SPL_TYPES_H */