diff options
| author | Jan Beich <jbeich@FreeBSD.org> | 2023-02-20 14:15:15 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-20 14:15:15 +0000 |
| commit | 474ada9267ccb98015991ee9d0d93fbb5da72034 (patch) | |
| tree | b53e9f2f16e47974e3a42d275b457d0aa9542fe4 /src/helpers | |
| parent | 784cdd76380b844bec286416de297daca3fbcdc7 (diff) | |
Unbreak CrashReporter on FreeBSD (#1589)
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; |
