libroot/os: Remove B_CLONEABLE_AREA protection check.
Due to how API versions work, it seems this flag is still applied on a lot of applications, as some have some rather old API versions (actually API versions themselves may not be working quite right, to boot.) All relevant software should have had a chance to be recompiled on or after beta2, so we reduce the flag's automatic application back just to BeOS applications.
This commit is contained in:
@@ -16,9 +16,7 @@ create_area(const char *name, void **address, uint32 addressSpec, size_t size,
|
|||||||
uint32 lock, uint32 protection)
|
uint32 lock, uint32 protection)
|
||||||
{
|
{
|
||||||
if (__gABIVersion < B_HAIKU_ABI_GCC_2_HAIKU)
|
if (__gABIVersion < B_HAIKU_ABI_GCC_2_HAIKU)
|
||||||
protection |= B_EXECUTE_AREA;
|
protection |= B_EXECUTE_AREA | B_CLONEABLE_AREA;
|
||||||
if (__gAPIVersion < B_HAIKU_VERSION_1_PRE_BETA_2)
|
|
||||||
protection |= B_CLONEABLE_AREA;
|
|
||||||
return _kern_create_area(name, address, addressSpec, size, lock, protection);
|
return _kern_create_area(name, address, addressSpec, size, lock, protection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user