Skip to content

Instantly share code, notes, and snippets.

@ftrvxmtrx
Created March 9, 2020 15:19
Show Gist options
  • Save ftrvxmtrx/60e641aa70643d32259da2d8d8ab1e0c to your computer and use it in GitHub Desktop.
Save ftrvxmtrx/60e641aa70643d32259da2d8d8ab1e0c to your computer and use it in GitHub Desktop.
diff --git a/build/CMakeLists.txt b/build/CMakeLists.txt
index 399ecc770..b702bf7e0 100644
--- a/build/CMakeLists.txt
+++ b/build/CMakeLists.txt
@@ -135,7 +135,7 @@ elseif(WIN32 OR MSYS)
set (FAUST_DEFINITIONS ${FAUST_DEFINITIONS} -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES)
set (FAUST_LIBS ${FAUST_LIBS} Ws2_32) #.lib)
elseif(NOT ANDROID)
- set (FAUST_LIBS -lpthread ${FAUST_LIBS})
+ set (FAUST_LIBS -lpthread -L/usr/local/lib -lexecinfo ${FAUST_LIBS})
endif()
####################################
diff --git a/compiler/generator/tools.cpp b/compiler/generator/tools.cpp
index 2e4630d75..f7f8ccd19 100644
--- a/compiler/generator/tools.cpp
+++ b/compiler/generator/tools.cpp
@@ -87,8 +87,8 @@ size_t cache_line_size()
#else
#warning Unrecognized platform
-#include <sys/sysctl.h>
-size_t cache_line_size()
+#include <cstddef>
+std::size_t cache_line_size()
{
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment