[Webkit-unassigned] [Bug 241077] Include <sys/sysinfo.h> only on FreeBSD and Linux

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 29 16:44:36 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=241077

--- Comment #8 from Fujii Hironori <Hironori.Fujii at sony.com> ---
Comment on attachment 459840
  --> https://bugs.webkit.org/attachment.cgi?id=459840
Include <sys/sysinfo.h> only on FreeBSD and Linux

View in context: https://bugs.webkit.org/attachment.cgi?id=459840&action=review

> Source/bmalloc/bmalloc/AvailableMemory.cpp:-47
> -#include <sys/sysinfo.h>

Unfortunately, sytle checker doesn't like this change.

> ERROR: Source/bmalloc/bmalloc/AvailableMemory.cpp:54:  "sys/sysinfo.h" already included at Source/bmalloc/bmalloc/AvailableMemory.cpp:50  [build/include] [4]

#if BOS(FREEBSD) || BOS(LINUX)
#include <sys/sysinfo.h>
#endif

This condition matches with the implementation of AvailableMemory.cpp.

You can style errors with Tools/Scripts/check-webkit-style before uploading.
If you use `webkit-patch upload` or `git-webkit pr` scripts to upload your patch, it automatically run check-webkit-style.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220529/d2024243/attachment-0001.htm>


More information about the webkit-unassigned mailing list