Browse Source

Really fix build

Signed-off-by: falkTX <falktx@falktx.com>
pull/1775/head
falkTX 1 year ago
parent
commit
f225438974
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      source/discovery/carla-discovery.cpp

+ 2
- 2
source/discovery/carla-discovery.cpp View File

@@ -33,7 +33,7 @@


#ifdef CARLA_OS_MAC #ifdef CARLA_OS_MAC
# include "CarlaMacUtils.cpp" # include "CarlaMacUtils.cpp"
# if defined(USING_JUCE) && defined(__aarch64__)
# ifdef __aarch64__
# include <spawn.h> # include <spawn.h>
# endif # endif
#endif #endif
@@ -2752,7 +2752,7 @@ int main(int argc, const char* argv[])
posix_spawnattr_t attr; posix_spawnattr_t attr;
posix_spawnattr_init(&attr); posix_spawnattr_init(&attr);
CARLA_SAFE_ASSERT_RETURN(posix_spawnattr_setbinpref_np(&attr, 1, &pref, nullptr) == 0, 1); CARLA_SAFE_ASSERT_RETURN(posix_spawnattr_setbinpref_np(&attr, 1, &pref, nullptr) == 0, 1);
CARLA_SAFE_ASSERT_RETURN(posix_spawn(&pid, argv[0], nullptr, &attr, argv, nullptr) == 0, 1);
CARLA_SAFE_ASSERT_RETURN(posix_spawn(&pid, argv[0], nullptr, &attr, (char* const*)argv, nullptr) == 0, 1);
posix_spawnattr_destroy(&attr); posix_spawnattr_destroy(&attr);


if (pid > 0) if (pid > 0)


Loading…
Cancel
Save