Browse Source

Fix cross-compilation

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.1-rc1
falkTX 6 years ago
parent
commit
9379d71c9c
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      source/backend/engine/CarlaEngineJack.cpp

+ 4
- 2
source/backend/engine/CarlaEngineJack.cpp View File

@@ -64,9 +64,9 @@ static int buggy_jack2_uuid_parse(const char* b, jack_uuid_t* u)
{
if (sscanf (b, P_UINT64, u) == 1) {

if (*u < (0x1LL << 32)) {
if (*u < (0x1LLU << 32)) {
// FIXME: bug in jack2, client bit not set
*u = (0x2LU << 32) | *u;
*u = (0x2LLU << 32) | *u;
}

return 0;
@@ -1039,6 +1039,7 @@ public:

if (buggy_jack2_uuid_parse(uuidchar, &uuid) == 0)
{
#if defined(HAVE_LIBLO) && !defined(BUILD_BRIDGE)
const CarlaString& tcp(pData->osc.getServerPathTCP());
const CarlaString& udp(pData->osc.getServerPathUDP());

@@ -1049,6 +1050,7 @@ public:
if (tcp.isNotEmpty())
jackbridge_set_property(fClient, uuid,
"https://kx.studio/ns/carla/osc-udp", udp.buffer(), "text/plain");
#endif
}
}



Loading…
Cancel
Save