FAT: Better isolation from host headers for the fat_shell.
Fixes the build on FreeBSD.
This commit is contained in:
@@ -38,6 +38,7 @@
|
|||||||
// Modified to support the Haiku FAT driver.
|
// Modified to support the Haiku FAT driver.
|
||||||
|
|
||||||
#ifdef FS_SHELL
|
#ifdef FS_SHELL
|
||||||
|
#include "sys/types.h"
|
||||||
#include "fssh_api_wrapper.h"
|
#include "fssh_api_wrapper.h"
|
||||||
#else
|
#else
|
||||||
#include <real_time_clock.h>
|
#include <real_time_clock.h>
|
||||||
|
|||||||
@@ -36,10 +36,11 @@
|
|||||||
// Modified to support the Haiku FAT driver.
|
// Modified to support the Haiku FAT driver.
|
||||||
|
|
||||||
#ifdef FS_SHELL
|
#ifdef FS_SHELL
|
||||||
|
#include "sys/types.h"
|
||||||
#include "fssh_api_wrapper.h"
|
#include "fssh_api_wrapper.h"
|
||||||
#else
|
#else
|
||||||
#include <fs_cache.h>
|
#include <fs_cache.h>
|
||||||
#endif // FS_SHELL
|
#endif
|
||||||
|
|
||||||
#include "sys/param.h"
|
#include "sys/param.h"
|
||||||
#include "sys/systm.h"
|
#include "sys/systm.h"
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
// Modified to support the Haiku FAT driver.
|
// Modified to support the Haiku FAT driver.
|
||||||
|
|
||||||
#ifdef FS_SHELL
|
#ifdef FS_SHELL
|
||||||
|
#include "sys/types.h"
|
||||||
#include "fssh_api_wrapper.h"
|
#include "fssh_api_wrapper.h"
|
||||||
#else
|
#else
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
// Modified to support the Haiku FAT driver.
|
// Modified to support the Haiku FAT driver.
|
||||||
|
|
||||||
#ifdef FS_SHELL
|
#ifdef FS_SHELL
|
||||||
|
#include "sys/types.h"
|
||||||
#include "fssh_api_wrapper.h"
|
#include "fssh_api_wrapper.h"
|
||||||
#else
|
#else
|
||||||
#include <disk_device_manager.h>
|
#include <disk_device_manager.h>
|
||||||
|
|||||||
@@ -37,6 +37,8 @@
|
|||||||
|
|
||||||
#include <fs_info.h>
|
#include <fs_info.h>
|
||||||
#include <libs/iconv/iconv.h>
|
#include <libs/iconv/iconv.h>
|
||||||
|
#else
|
||||||
|
#include <fssh_api_wrapper.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -39,12 +39,11 @@
|
|||||||
|
|
||||||
// Modified to support the Haiku FAT driver.
|
// Modified to support the Haiku FAT driver.
|
||||||
|
|
||||||
#include <sys/time.h>
|
|
||||||
|
|
||||||
#ifndef FS_SHELL
|
#ifndef FS_SHELL
|
||||||
#include <errno.h>
|
# include <errno.h>
|
||||||
#include_next <sys/param.h>
|
# include <sys/time.h>
|
||||||
#endif // !FS_SHELL
|
# include_next <sys/param.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "sys/types.h"
|
#include "sys/types.h"
|
||||||
|
|
||||||
|
|||||||
@@ -7,16 +7,13 @@
|
|||||||
|
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
|
#ifndef FS_SHELL
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifdef FS_SHELL
|
|
||||||
#include "fssh_api_wrapper.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define _KERNEL
|
#define _KERNEL
|
||||||
|
|
||||||
extern "C"
|
extern "C" {
|
||||||
{
|
|
||||||
#include "sys/param.h"
|
#include "sys/param.h"
|
||||||
#include "sys/buf.h"
|
#include "sys/buf.h"
|
||||||
#include "sys/conf.h"
|
#include "sys/conf.h"
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#ifdef FS_SHELL
|
#ifdef FS_SHELL
|
||||||
|
#include "sys/types.h"
|
||||||
#include "fssh_api_wrapper.h"
|
#include "fssh_api_wrapper.h"
|
||||||
#else
|
#else
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
@@ -5,20 +5,18 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "encodings.h"
|
#include "encodings.h"
|
||||||
|
#include "support.h"
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#ifndef FS_SHELL
|
#ifndef FS_SHELL
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#endif // !FS_SHELL
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#endif // !FS_SHELL
|
||||||
#include "support.h"
|
|
||||||
|
|
||||||
#define TOUCH(x) ((void)(x))
|
#define TOUCH(x) ((void)(x))
|
||||||
|
|
||||||
#ifdef USER
|
#ifdef USER
|
||||||
#include <stdio.h>
|
|
||||||
#define dprintf printf
|
#define dprintf printf
|
||||||
#undef DEBUG
|
#undef DEBUG
|
||||||
int _assert_(char *,int,char *) {return 0;}
|
int _assert_(char *,int,char *) {return 0;}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
#else // FS_SHELL
|
#else // FS_SHELL
|
||||||
typedef unsigned char uchar;
|
typedef unsigned char uchar;
|
||||||
|
|
||||||
|
#include "sys/types.h"
|
||||||
#include "fssh_api_wrapper.h"
|
#include "fssh_api_wrapper.h"
|
||||||
#endif // FS_SHELL
|
#endif // FS_SHELL
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#ifndef LONGLONG_MAX
|
#ifndef LONGLONG_MAX
|
||||||
#define LONGLONG_MAX LONG_LONG_MAX
|
#define LONGLONG_MAX LLONG_MAX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef B_USE_POSITIVE_POSIX_ERRORS
|
#ifdef B_USE_POSITIVE_POSIX_ERRORS
|
||||||
|
|||||||
@@ -56,6 +56,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#ifdef FS_SHELL
|
#ifdef FS_SHELL
|
||||||
|
#include "sys/types.h"
|
||||||
#include "fssh_api_wrapper.h"
|
#include "fssh_api_wrapper.h"
|
||||||
#else // !FS_SHELL
|
#else // !FS_SHELL
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ Copyright 2024, Haiku, Inc. All rights reserved.
|
|||||||
|
|
||||||
|
|
||||||
#ifdef FS_SHELL
|
#ifdef FS_SHELL
|
||||||
|
#include "sys/types.h"
|
||||||
#include "fssh_api_wrapper.h"
|
#include "fssh_api_wrapper.h"
|
||||||
#else
|
#else
|
||||||
#include <SupportDefs.h>
|
#include <SupportDefs.h>
|
||||||
|
|||||||
@@ -57,9 +57,7 @@
|
|||||||
|
|
||||||
#include "support.h"
|
#include "support.h"
|
||||||
|
|
||||||
#ifdef FS_SHELL
|
#ifndef FS_SHELL
|
||||||
#include "fssh_api_wrapper.h"
|
|
||||||
#else // !FS_SHELL
|
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
|
||||||
|
|||||||
@@ -60,14 +60,14 @@
|
|||||||
// Support functions for C++ driver code.
|
// Support functions for C++ driver code.
|
||||||
|
|
||||||
#ifdef FS_SHELL
|
#ifdef FS_SHELL
|
||||||
|
#include "sys/types.h"
|
||||||
#include "fssh_api_wrapper.h"
|
#include "fssh_api_wrapper.h"
|
||||||
#else
|
#else
|
||||||
#include <lock.h>
|
#include <lock.h>
|
||||||
#endif // FS_SHELL
|
#endif // FS_SHELL
|
||||||
|
|
||||||
#define _KERNEL
|
#define _KERNEL
|
||||||
extern "C"
|
extern "C" {
|
||||||
{
|
|
||||||
#include "sys/param.h"
|
#include "sys/param.h"
|
||||||
#include "sys/buf.h"
|
#include "sys/buf.h"
|
||||||
#include "sys/conf.h"
|
#include "sys/conf.h"
|
||||||
|
|||||||
@@ -43,22 +43,21 @@ without calling get_vnode().
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "vcache.h"
|
|
||||||
|
|
||||||
#ifdef FS_SHELL
|
#ifdef FS_SHELL
|
||||||
|
#include "sys/types.h"
|
||||||
#include "fssh_api_wrapper.h"
|
#include "fssh_api_wrapper.h"
|
||||||
#else // !FS_SHELL
|
#else // !FS_SHELL
|
||||||
#include <new>
|
#include <new>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#endif // !FS_SHELL
|
|
||||||
|
|
||||||
#ifndef FS_SHELL
|
|
||||||
#include <fs_cache.h>
|
#include <fs_cache.h>
|
||||||
#include <fs_interface.h>
|
#include <fs_interface.h>
|
||||||
#endif // !FS_SHELL
|
#endif // !FS_SHELL
|
||||||
|
|
||||||
|
#include "vcache.h"
|
||||||
|
|
||||||
#define _KERNEL
|
#define _KERNEL
|
||||||
#include "sys/vnode.h"
|
#include "sys/vnode.h"
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,9 @@
|
|||||||
#define _DOSFS_VCACHE_H_
|
#define _DOSFS_VCACHE_H_
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef FS_SHELL
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "dosfs.h"
|
#include "dosfs.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user