33 lines
734 B
Plaintext
33 lines
734 B
Plaintext
$OpenBSD$
|
|
|
|
Index: libobs/obs-nix.c
|
|
--- libobs/obs-nix.c.orig
|
|
+++ libobs/obs-nix.c
|
|
@@ -26,7 +26,9 @@
|
|
#if defined(__FreeBSD__)
|
|
#include <sys/sysctl.h>
|
|
#endif
|
|
+#ifndef __OpenBSD__
|
|
#include <sys/sysinfo.h>
|
|
+#endif
|
|
#include <sys/utsname.h>
|
|
#include <xcb/xcb.h>
|
|
#if USE_XINPUT
|
|
@@ -218,6 +220,8 @@ static void log_processor_info(void)
|
|
|
|
static void log_memory_info(void)
|
|
{
|
|
+#if defined(__OpenBSD__)
|
|
+#else
|
|
struct sysinfo info;
|
|
if (sysinfo(&info) < 0)
|
|
return;
|
|
@@ -227,6 +231,7 @@ static void log_memory_info(void)
|
|
(uint64_t)info.totalram * info.mem_unit / 1024 / 1024,
|
|
((uint64_t)info.freeram + (uint64_t)info.bufferram) *
|
|
info.mem_unit / 1024 / 1024);
|
|
+#endif
|
|
}
|
|
|
|
static void log_kernel_version(void)
|