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
+1 -2
View File
@@ -4,8 +4,7 @@
** Distributed under the terms of the OpenBeOS License.
*/
#include <sys/types.h>
#include <unistd.h>
// ToDo: there are some BeOS specific things missing, most
// things are only rarely or almost never used, though.
+9 -3
View File
@@ -11,10 +11,16 @@
#define NOFILE OPEN_MAX
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
#ifndef MIN
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
#endif
#ifndef MAX
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
#endif
/* maximum possible length of this machine's hostname */
#define MAXHOSTNAMELEN 256
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 256
#endif
#endif /* _SYS_PARAM_H */
+1 -1
View File
@@ -3,7 +3,7 @@
#ifndef _SYS_UIO_H
#define _SYS_UIO_H
#include <ktypes.h>
#include <sys/types.h>
typedef struct iovec {
void *iov_base;
+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;
+1 -1
View File
@@ -33,7 +33,7 @@ namespace Storage {
// Type aliases
typedef dirent DirEntry;
typedef flock FileLock;
typedef struct flock FileLock;
typedef struct stat Stat;
typedef uint32 StatMember;
typedef attr_info AttrInfo;