Fix libexecinfo not being used on OpenBSD

This commit is contained in:
UnknownShadow200 2024-10-14 08:16:18 +11:00
parent a8b3bca199
commit a4c2c2f88a
2 changed files with 3 additions and 3 deletions

View file

@ -38,7 +38,7 @@ static void VertexList_Append(AlignedVector* list, const void* cmd) {
// Round up to nearest page
#define TEXMEM_PAGE_ROUNDUP(size) (((size) + TEXMEM_PAGE_MASK) & ~TEXMEM_PAGE_MASK)
// Leave a little bit of memory available by KOS PVR code
#define TEXMEM_RESERVED (64 * 1024)
#define TEXMEM_RESERVED (48 * 1024)
#define TEXMEM_TO_PAGE(addr) ((cc_uint32)((addr) - texmem_base) / TEXMEM_PAGE_SIZE)
TextureObject* TEXTURE_ACTIVE;
@ -98,7 +98,7 @@ static int texmem_defragment(void) {
return moved_any;
}
static int texmem_can_alloc(cc_uint32 beg, cc_uint32 pages) {
static CC_INLINE int texmem_can_alloc(cc_uint32 beg, cc_uint32 pages) {
if (texmem_used[beg]) return false;
for (cc_uint32 page = beg; page < beg + pages; page++)

View file

@ -403,7 +403,7 @@ void Logger_Backtrace(cc_string* trace, void* ctx) {
}
#elif defined CC_BACKTRACE_BUILTIN
/* Implemented later at end of the file */
#elif defined CC_BUILD_POSIX && defined _GLIBC_
#elif defined CC_BUILD_POSIX && (defined _GLIBC_ || defined CC_BUILD_OPENBSD)
#include <execinfo.h>
void Logger_Backtrace(cc_string* trace, void* ctx) {