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:
@@ -4,8 +4,7 @@
|
|||||||
** Distributed under the terms of the OpenBeOS License.
|
** Distributed under the terms of the OpenBeOS License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
|
||||||
// ToDo: there are some BeOS specific things missing, most
|
// ToDo: there are some BeOS specific things missing, most
|
||||||
// things are only rarely or almost never used, though.
|
// things are only rarely or almost never used, though.
|
||||||
|
|||||||
@@ -11,10 +11,16 @@
|
|||||||
|
|
||||||
#define NOFILE OPEN_MAX
|
#define NOFILE OPEN_MAX
|
||||||
|
|
||||||
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
|
#ifndef MIN
|
||||||
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
|
#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 */
|
/* maximum possible length of this machine's hostname */
|
||||||
#define MAXHOSTNAMELEN 256
|
#ifndef MAXHOSTNAMELEN
|
||||||
|
#define MAXHOSTNAMELEN 256
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _SYS_PARAM_H */
|
#endif /* _SYS_PARAM_H */
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
#ifndef _SYS_UIO_H
|
#ifndef _SYS_UIO_H
|
||||||
#define _SYS_UIO_H
|
#define _SYS_UIO_H
|
||||||
|
|
||||||
#include <ktypes.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
typedef struct iovec {
|
typedef struct iovec {
|
||||||
void *iov_base;
|
void *iov_base;
|
||||||
|
|||||||
@@ -11,43 +11,13 @@ extern "C" {
|
|||||||
|
|
||||||
#include <SupportDefs.h>
|
#include <SupportDefs.h>
|
||||||
|
|
||||||
typedef uint16 mode_t;
|
|
||||||
typedef int pid_t;
|
|
||||||
typedef int32 region_id;
|
typedef int32 region_id;
|
||||||
typedef int32 aspace_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 _IMAGE_H
|
||||||
#ifndef NULL
|
typedef int32 image_id;
|
||||||
#define NULL 0
|
|
||||||
#endif
|
#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;
|
typedef unsigned long addr;
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ namespace Storage {
|
|||||||
|
|
||||||
// Type aliases
|
// Type aliases
|
||||||
typedef dirent DirEntry;
|
typedef dirent DirEntry;
|
||||||
typedef flock FileLock;
|
typedef struct flock FileLock;
|
||||||
typedef struct stat Stat;
|
typedef struct stat Stat;
|
||||||
typedef uint32 StatMember;
|
typedef uint32 StatMember;
|
||||||
typedef attr_info AttrInfo;
|
typedef attr_info AttrInfo;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
**===============================================================
|
**===============================================================
|
||||||
** 24 June 2002 - Mathew Hounsell - Created
|
** 24 June 2002 - Mathew Hounsell - Created
|
||||||
*/
|
*/
|
||||||
#include "be/app/Clipboard.h"
|
#include <app/Clipboard.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
@@ -1,8 +1,21 @@
|
|||||||
SubDir OBOS_TOP src kernel boot ;
|
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 bootmaker : bootmaker.c ;
|
||||||
SystemMain bin2h : bin2h.c ;
|
SystemMain bin2h : bin2h.c ;
|
||||||
SystemMain bin2asm : bin2asm.c ;
|
SystemMain bin2asm : bin2asm.c ;
|
||||||
SystemMain makeflop : makeflop.c ;
|
SystemMain makeflop : makeflop.c ;
|
||||||
|
|
||||||
|
CCFLAGS = $(oldccflags) ;
|
||||||
|
|
||||||
SubInclude OBOS_TOP src kernel boot arch ;
|
SubInclude OBOS_TOP src kernel boot arch ;
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
#include <TimeSource.h>
|
#include <TimeSource.h>
|
||||||
#include <MediaTheme.h>
|
#include <MediaTheme.h>
|
||||||
|
|
||||||
|
#include "GSUtility.h"
|
||||||
#include "GameSoundDevice.h"
|
#include "GameSoundDevice.h"
|
||||||
#include "GameSoundBuffer.h"
|
#include "GameSoundBuffer.h"
|
||||||
#include "GameProducer.h"
|
#include "GameProducer.h"
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ _SysTimeSource::SnoozeUntil(
|
|||||||
bigtime_t time = performance_time - with_latency;
|
bigtime_t time = performance_time - with_latency;
|
||||||
status_t err;
|
status_t err;
|
||||||
do {
|
do {
|
||||||
err = snooze_until(time,B_SYSTEM_TIMEBASE);
|
err = snooze_until(time, B_SYSTEM_TIMEBASE);
|
||||||
} while (err == B_INTERRUPTED && retry_signals);
|
} while (err == B_INTERRUPTED && retry_signals);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
SubDir OBOS_TOP src kits net libnet ;
|
SubDir OBOS_TOP src kits net libnet ;
|
||||||
|
|
||||||
UsePosixHeaders ;
|
|
||||||
UsePrivateHeaders net ;
|
UsePrivateHeaders net ;
|
||||||
SetupIncludes ;
|
|
||||||
SubDirCcFlags -nostdinc ;
|
|
||||||
|
|
||||||
SharedLibrary net :
|
SharedLibrary net :
|
||||||
socket.c
|
socket.c
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
SubDir OBOS_TOP src kits net libnetapi ;
|
SubDir OBOS_TOP src kits net libnetapi ;
|
||||||
|
|
||||||
UsePosixHeaders ;
|
UsePrivateHeaders net ;
|
||||||
|
|
||||||
SharedLibrary netapi :
|
SharedLibrary netapi :
|
||||||
NetEndpoint.cpp
|
NetEndpoint.cpp
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
#include <be/add-ons/input_server/InputServerDevice.h>
|
#include <add-ons/input_server/InputServerDevice.h>
|
||||||
#include <be/storage/File.h>
|
#include <storage/File.h>
|
||||||
#include <be/app/Application.h>
|
#include <app/Application.h>
|
||||||
#include <be/storage/Directory.h>
|
#include <storage/Directory.h>
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
#include <be/interface/Input.h>
|
#include <interface/Input.h>
|
||||||
#include <iostream.h>
|
#include <iostream.h>
|
||||||
#endif //DEBUG
|
#endif //DEBUG
|
||||||
#include "KeymapWindow.h"
|
#include "KeymapWindow.h"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#ifndef OBOS_KEYMAP_APPLICATION_H
|
#ifndef OBOS_KEYMAP_APPLICATION_H
|
||||||
#define OBOS_KEYMAP_APPLICATION_H
|
#define OBOS_KEYMAP_APPLICATION_H
|
||||||
|
|
||||||
#include <be/storage/Entry.h>
|
#include <storage/Entry.h>
|
||||||
#include <be/support/List.h>
|
#include <support/List.h>
|
||||||
|
|
||||||
#define APP_SIGNATURE "application/x-vnd.OpenBeOS-Keymap"
|
#define APP_SIGNATURE "application/x-vnd.OpenBeOS-Keymap"
|
||||||
#define COPY_BUFFER_SIZE 1 * 1024
|
#define COPY_BUFFER_SIZE 1 * 1024
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
#ifndef OBOS_KEYMAP_LIST_ITEM_H
|
#ifndef OBOS_KEYMAP_LIST_ITEM_H
|
||||||
#define OBOS_KEYMAP_LIST_ITEM_H
|
#define OBOS_KEYMAP_LIST_ITEM_H
|
||||||
|
|
||||||
#include <be/interface/ListItem.h>
|
#include <interface/ListItem.h>
|
||||||
#include <be/storage/Entry.h>
|
#include <storage/Entry.h>
|
||||||
|
|
||||||
|
|
||||||
class KeymapListItem : public BStringItem {
|
class KeymapListItem : public BStringItem {
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
#include <be/app/Application.h>
|
#include <app/Application.h>
|
||||||
#include <be/interface/View.h>
|
#include <interface/View.h>
|
||||||
#include <be/interface/GraphicsDefs.h>
|
#include <interface/GraphicsDefs.h>
|
||||||
#include <be/interface/MenuItem.h>
|
#include <interface/MenuItem.h>
|
||||||
#include <be/interface/ListView.h>
|
#include <interface/ListView.h>
|
||||||
#include <be/interface/ScrollView.h>
|
#include <interface/ScrollView.h>
|
||||||
#include <be/interface/Button.h>
|
#include <interface/Button.h>
|
||||||
#include <be/interface/Alert.h>
|
#include <interface/Alert.h>
|
||||||
#include <be/interface/Box.h>
|
#include <interface/Box.h>
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#include <iostream.h>
|
#include <iostream.h>
|
||||||
#endif //DEBUG
|
#endif //DEBUG
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
#define OBOS_KEYMAP_WINDOW_H
|
#define OBOS_KEYMAP_WINDOW_H
|
||||||
|
|
||||||
|
|
||||||
#include <be/interface/Window.h>
|
#include <interface/Window.h>
|
||||||
#include <be/support/List.h>
|
#include <support/List.h>
|
||||||
#include <be/interface/MenuBar.h>
|
#include <interface/MenuBar.h>
|
||||||
|
|
||||||
|
|
||||||
#if !DEBUG
|
#if !DEBUG
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* Creation: Sandor Vroemisse
|
* Creation: Sandor Vroemisse
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <be/app/Application.h>
|
#include <app/Application.h>
|
||||||
#include "KeymapApplication.h"
|
#include "KeymapApplication.h"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
// BeOS
|
// BeOS
|
||||||
#include <be/kernel/fs_attr.h>
|
#include <kernel/fs_attr.h>
|
||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
#include <Autolock.h>
|
#include <Autolock.h>
|
||||||
#include <Node.h>
|
#include <Node.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user