allow building everything without local(tree external) header files beeing

used for kernel or kit components


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1630 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper
2002-10-23 20:13:17 +00:00
parent 3bb5ee98f7
commit 9fc7164698
18 changed files with 54 additions and 68 deletions
+2 -32
View File
@@ -11,43 +11,13 @@ extern "C" {
#include <SupportDefs.h>
typedef uint16 mode_t;
typedef int pid_t;
typedef int32 region_id;
typedef int32 aspace_id;
typedef int32 image_id;
typedef uint32 dev_t;
typedef uint64 ino_t;
typedef uint16 nlink_t;
typedef uint32 uid_t;
typedef uint32 gid_t;
#ifndef NULL
#define NULL 0
#ifndef _IMAGE_H
typedef int32 image_id;
#endif
/*
* XXX serious hack that doesn't really solve the problem.
* As of right now, some versions of the toolchain expect size_t to
* be unsigned long (newer ones than 2.95.2 and beos), and the older
* ones need it to be unsigned int. It's an actual failure when
* operator new is declared. This will have to be resolved in the future.
*/
#ifdef __BEOS__
typedef unsigned long size_t;
typedef signed long ssize_t;
#else
typedef unsigned int size_t;
typedef signed int ssize_t;
#endif
typedef int64 off_t;
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;
typedef unsigned long addr;