Title: [295033] trunk/Source/bmalloc/bmalloc/AvailableMemory.cpp
Revision
295033
Author
[email protected]
Date
2022-05-30 14:59:54 -0700 (Mon, 30 May 2022)

Log Message

Include <sys/sysinfo.h> only on FreeBSD and Linux
https://bugs.webkit.org/show_bug.cgi?id=241077

Patch by Leonardo Taccari <[email protected]> on 2022-05-30
Reviewed by Fujii Hironori.

sysinfo(2)/sysinfo(3) is used only on FreeBSD and Linux and could be not
available in other Unix-like operating systems.

* Source/bmalloc/bmalloc/AvailableMemory.cpp:

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

Modified Paths

Diff

Modified: trunk/Source/bmalloc/bmalloc/AvailableMemory.cpp (295032 => 295033)


--- trunk/Source/bmalloc/bmalloc/AvailableMemory.cpp	2022-05-30 18:07:24 UTC (rev 295032)
+++ trunk/Source/bmalloc/bmalloc/AvailableMemory.cpp	2022-05-30 21:59:54 UTC (rev 295033)
@@ -44,7 +44,9 @@
 #import <mach/mach_error.h>
 #import <math.h>
 #elif BOS(UNIX)
+#if BOS(FREEBSD) || BOS(LINUX)
 #include <sys/sysinfo.h>
+#endif
 #if BOS(LINUX)
 #include <algorithm>
 #include <fcntl.h>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to