Title: [295037] trunk/Source/WTF/wtf/RAMSize.cpp
Revision
295037
Author
commit-qu...@webkit.org
Date
2022-05-30 16:58:55 -0700 (Mon, 30 May 2022)

Log Message

Include <sys/sysinfo.h> on FreeBSD too
https://bugs.webkit.org/show_bug.cgi?id=241099

Patch by Leonardo Taccari <l...@netbsd.org> on 2022-05-30
Reviewed by Fujii Hironori.

sysinfo(2)/sysinfo(3) is used also in FreeBSD, include corresponding
<sys/sysinfo.h> header too.

* Source/WTF/wtf/RAMSize.cpp:

Canonical link: https://commits.webkit.org/251132@main

Modified Paths

Diff

Modified: trunk/Source/WTF/wtf/RAMSize.cpp (295036 => 295037)


--- trunk/Source/WTF/wtf/RAMSize.cpp	2022-05-30 23:41:10 UTC (rev 295036)
+++ trunk/Source/WTF/wtf/RAMSize.cpp	2022-05-30 23:58:55 UTC (rev 295037)
@@ -31,11 +31,11 @@
 #if OS(WINDOWS)
 #include <windows.h>
 #elif USE(SYSTEM_MALLOC)
-#if OS(LINUX)
+#if OS(LINUX) || OS(FREEBSD)
 #include <sys/sysinfo.h>
 #elif OS(UNIX)
 #include <unistd.h>
-#endif // OS(LINUX) || OS(UNIX)
+#endif // OS(LINUX) || OS(FREEBSD) || OS(UNIX)
 #else
 #include <bmalloc/bmalloc.h>
 #endif
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to