소스 검색

libobs: add missing FreeBSD #include to fix build

sysctlbyname requires #include <sys/sysctl.h>.  Perhaps this previously
worked due to header pollution that has since been cleaned up in newer
FreeBSD.
Ed Maste 6 년 전
부모
커밋
97c243fdf9
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      libobs/util/platform-nix.c

+ 1 - 0
libobs/util/platform-nix.c

@@ -38,6 +38,7 @@
 #include <sys/param.h>
 #include <sys/queue.h>
 #include <sys/socket.h>
+#include <sys/sysctl.h>
 #include <sys/user.h>
 #include <unistd.h>
 #include <libprocstat.h>