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

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.

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 */

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;

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;

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;

View File

@ -3,7 +3,7 @@
**===============================================================
** 24 June 2002 - Mathew Hounsell - Created
*/
#include "be/app/Clipboard.h"
#include <app/Clipboard.h>
#include <stdio.h>
#include <string.h>

View File

@ -1,8 +1,21 @@
SubDir OBOS_TOP src kernel boot ;
oldccflags = $(CCFLAGS) ;
{
CCFLAGS = ;
local x ;
for x in $(CCFLAGS) {
if $(x) != --nostdinc {
CCFLAGS += $(x) ;
}
}
}
SystemMain bootmaker : bootmaker.c ;
SystemMain bin2h : bin2h.c ;
SystemMain bin2asm : bin2asm.c ;
SystemMain makeflop : makeflop.c ;
CCFLAGS = $(oldccflags) ;
SubInclude OBOS_TOP src kernel boot arch ;

View File

@ -35,6 +35,7 @@
#include <TimeSource.h>
#include <MediaTheme.h>
#include "GSUtility.h"
#include "GameSoundDevice.h"
#include "GameSoundBuffer.h"
#include "GameProducer.h"

View File

@ -26,7 +26,7 @@ _SysTimeSource::SnoozeUntil(
bigtime_t time = performance_time - with_latency;
status_t err;
do {
err = snooze_until(time,B_SYSTEM_TIMEBASE);
err = snooze_until(time, B_SYSTEM_TIMEBASE);
} while (err == B_INTERRUPTED && retry_signals);
return err;
}

View File

@ -1,9 +1,6 @@
SubDir OBOS_TOP src kits net libnet ;
UsePosixHeaders ;
UsePrivateHeaders net ;
SetupIncludes ;
SubDirCcFlags -nostdinc ;
SharedLibrary net :
socket.c

View File

@ -1,6 +1,6 @@
SubDir OBOS_TOP src kits net libnetapi ;
UsePosixHeaders ;
UsePrivateHeaders net ;
SharedLibrary netapi :
NetEndpoint.cpp

View File

@ -1,9 +1,9 @@
#include <be/add-ons/input_server/InputServerDevice.h>
#include <be/storage/File.h>
#include <be/app/Application.h>
#include <be/storage/Directory.h>
#include <add-ons/input_server/InputServerDevice.h>
#include <storage/File.h>
#include <app/Application.h>
#include <storage/Directory.h>
#if DEBUG
#include <be/interface/Input.h>
#include <interface/Input.h>
#include <iostream.h>
#endif //DEBUG
#include "KeymapWindow.h"

View File

@ -1,8 +1,8 @@
#ifndef OBOS_KEYMAP_APPLICATION_H
#define OBOS_KEYMAP_APPLICATION_H
#include <be/storage/Entry.h>
#include <be/support/List.h>
#include <storage/Entry.h>
#include <support/List.h>
#define APP_SIGNATURE "application/x-vnd.OpenBeOS-Keymap"
#define COPY_BUFFER_SIZE 1 * 1024

View File

@ -6,8 +6,8 @@
#ifndef OBOS_KEYMAP_LIST_ITEM_H
#define OBOS_KEYMAP_LIST_ITEM_H
#include <be/interface/ListItem.h>
#include <be/storage/Entry.h>
#include <interface/ListItem.h>
#include <storage/Entry.h>
class KeymapListItem : public BStringItem {

View File

@ -1,12 +1,12 @@
#include <be/app/Application.h>
#include <be/interface/View.h>
#include <be/interface/GraphicsDefs.h>
#include <be/interface/MenuItem.h>
#include <be/interface/ListView.h>
#include <be/interface/ScrollView.h>
#include <be/interface/Button.h>
#include <be/interface/Alert.h>
#include <be/interface/Box.h>
#include <app/Application.h>
#include <interface/View.h>
#include <interface/GraphicsDefs.h>
#include <interface/MenuItem.h>
#include <interface/ListView.h>
#include <interface/ScrollView.h>
#include <interface/Button.h>
#include <interface/Alert.h>
#include <interface/Box.h>
#ifdef DEBUG
#include <iostream.h>
#endif //DEBUG

View File

@ -2,9 +2,9 @@
#define OBOS_KEYMAP_WINDOW_H
#include <be/interface/Window.h>
#include <be/support/List.h>
#include <be/interface/MenuBar.h>
#include <interface/Window.h>
#include <support/List.h>
#include <interface/MenuBar.h>
#if !DEBUG

View File

@ -4,7 +4,7 @@
* Creation: Sandor Vroemisse
*/
#include <be/app/Application.h>
#include <app/Application.h>
#include "KeymapApplication.h"

View File

@ -39,7 +39,7 @@
#include <string.h>
// BeOS
#include <be/kernel/fs_attr.h>
#include <kernel/fs_attr.h>
#include <Application.h>
#include <Autolock.h>
#include <Node.h>