wasm related tweaks, still WIP
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
f4c2c03003
commit
d03e73119d
5 changed files with 24 additions and 4 deletions
39
include/linux-compat/execinfo.h
Normal file
39
include/linux-compat/execinfo.h
Normal file
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* DISTRHO Cardinal Plugin
|
||||
* Copyright (C) 2021-2022 Filipe Coelho <falktx@falktx.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 3 of
|
||||
* the License, or any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* For a full copy of the GNU General Public License see the LICENSE file.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __HAIKU__
|
||||
// these are missing from HaikuOS
|
||||
#define pthread_setname_np(...)
|
||||
|
||||
static int pthread_getcpuclockid(pthread_t, clockid_t* const clock_id)
|
||||
{
|
||||
*clock_id = CLOCK_REALTIME;
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int backtrace(void**, int)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
char** backtrace_symbols(void* const*, int)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
22
include/linux-compat/ghc/filesystem.hpp
Normal file
22
include/linux-compat/ghc/filesystem.hpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* DISTRHO Cardinal Plugin
|
||||
* Copyright (C) 2021-2022 Filipe Coelho <falktx@falktx.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 3 of
|
||||
* the License, or any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* For a full copy of the GNU General Public License see the LICENSE file.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define GHC_OS_DETECTED
|
||||
#define GHC_OS_LINUX
|
||||
#include_next <ghc/filesystem.hpp>
|
Loading…
Add table
Add a link
Reference in a new issue