diff options
Diffstat (limited to 'src/helpers')
| -rw-r--r-- | src/helpers/MiscFunctions.cpp | 4 | ||||
| -rw-r--r-- | src/helpers/Vector2D.cpp | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp index dcc1efbd..10d59316 100644 --- a/src/helpers/MiscFunctions.cpp +++ b/src/helpers/MiscFunctions.cpp @@ -412,7 +412,11 @@ void logSystemInfo() { Debug::log(NONE, "\n"); +#if defined(__DragonFly__) || defined(__FreeBSD__) + const std::string GPUINFO = execAndGet("pciconf -lv | fgrep -A4 vga"); +#else const std::string GPUINFO = execAndGet("lspci -vnn | grep VGA"); +#endif Debug::log(LOG, "GPU information:\n%s\n", GPUINFO.c_str()); if (GPUINFO.contains("NVIDIA")) { diff --git a/src/helpers/Vector2D.cpp b/src/helpers/Vector2D.cpp index 3ab3ce43..afd8b22a 100644 --- a/src/helpers/Vector2D.cpp +++ b/src/helpers/Vector2D.cpp @@ -1,5 +1,6 @@ #include "Vector2D.hpp" #include <algorithm> +#include <cmath> Vector2D::Vector2D(double xx, double yy) { x = xx; |
