r20337 broke the bfs_shell build (at least on Linux). Scary hack to fix
it which shouldn't break the R5 build again. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20350 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4bf052db56
commit
3fd2e5ccb4
@ -54,7 +54,7 @@ SYSHDRS = $(HAIKU_HDRS) ;
|
||||
fstat=build_platform_fstat
|
||||
read_pos=build_platform_read_pos
|
||||
ioctl=build_platform_ioctl
|
||||
"send_notification\\(...\\)="
|
||||
MEAN_BFS_SHELL_SELECT_HACK=1
|
||||
;
|
||||
}
|
||||
|
||||
|
@ -9,6 +9,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "fsproto.h" // include first for hacky reasons
|
||||
|
||||
#include "Query.h"
|
||||
#include "bfs.h"
|
||||
#include "Debug.h"
|
||||
@ -18,8 +20,6 @@
|
||||
#include "BPlusTree.h"
|
||||
#include "Index.h"
|
||||
|
||||
#include "fsproto.h"
|
||||
|
||||
#include <util/kernel_cpp.h>
|
||||
#include <SupportDefs.h>
|
||||
#include <NodeMonitor.h>
|
||||
|
@ -6,6 +6,16 @@
|
||||
#ifndef _FSPROTO_H
|
||||
#define _FSPROTO_H
|
||||
|
||||
// TODO: FIXME! XXX! DANGER! BIOHAZARD!
|
||||
// OMG, we're defining COMPILE_FOR_R5 so that <drivers/Select.h> defines the
|
||||
// obsolete notify_select_event() prototype. BTW, this happens only on
|
||||
// non-BeOS-compatible host platforms. Outright scary!
|
||||
#ifdef MEAN_BFS_SHELL_SELECT_HACK
|
||||
# define COMPILE_FOR_R5
|
||||
# include <drivers/Select.h>
|
||||
# undef COMPILE_FOR_R5
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/stat.h>
|
||||
|
Loading…
Reference in New Issue
Block a user