build: Use BeOSBuildCompatibility on Haiku also.

This forces usage of the libroot_build wrapper functions even on GCC2.
Probably fixes some strange ExtractHPKGArchive failures on Haiku.
This commit is contained in:
Augustin Cavalier 2018-07-31 17:49:38 -04:00
parent 2d93cf97c7
commit b5c220fb7d
2 changed files with 5 additions and 4 deletions

View File

@ -574,10 +574,9 @@ HOST_BE_API_HEADERS =
[ FDirName $(HAIKU_TOP) headers build os support ]
[ FDirName $(HAIKU_TOP) headers build private ]
;
if ! $(HOST_PLATFORM_HAIKU_COMPATIBLE) {
HOST_BE_API_CCFLAGS = -include BeOSBuildCompatibility.h ;
HOST_BE_API_C++FLAGS = $(HOST_BE_API_CCFLAGS) ;
}
HOST_BE_API_CCFLAGS = -include [ FDirName $(HAIKU_TOP) headers build
BeOSBuildCompatibility.h ] ;
HOST_BE_API_C++FLAGS = $(HOST_BE_API_CCFLAGS) ;
#pragma mark - target platform settings

View File

@ -215,12 +215,14 @@
#define HAIKU_EPIPE B_TO_POSIX_ERROR(B_BUSTED_PIPE)
/* new error codes that can be mapped to POSIX errors */
#ifndef BUILDING_HAIKU_ERROR_MAPPER
#define B_BUFFER_OVERFLOW B_FROM_POSIX_ERROR(HAIKU_EOVERFLOW)
#define B_TOO_MANY_ARGS B_FROM_POSIX_ERROR(HAIKU_E2BIG)
#define B_FILE_TOO_LARGE B_FROM_POSIX_ERROR(HAIKU_EFBIG)
#define B_RESULT_NOT_REPRESENTABLE B_FROM_POSIX_ERROR(HAIKU_ERANGE)
#define B_DEVICE_NOT_FOUND B_FROM_POSIX_ERROR(HAIKU_ENODEV)
#define B_NOT_SUPPORTED B_FROM_POSIX_ERROR(HAIKU_EOPNOTSUPP)
#endif
/* Media Kit Errors */
#define B_STREAM_NOT_FOUND (B_MEDIA_ERROR_BASE + 0)