Title: [289066] trunk/Source/bmalloc
- Revision
- 289066
- Author
- [email protected]
- Date
- 2022-02-03 11:59:26 -0800 (Thu, 03 Feb 2022)
Log Message
Fix BSD compilation after r289056
https://bugs.webkit.org/show_bug.cgi?id=236086
Unreviewed, fixes missing header in BSD systems.
The include is moved up so it is included in both UNIX and BSD systems,
as adding the include in both #if triggers a code style warning (header
included twice), even though the includes are guarded.
* bmalloc/AvailableMemory.cpp:
Modified Paths
Diff
Modified: trunk/Source/bmalloc/ChangeLog (289065 => 289066)
--- trunk/Source/bmalloc/ChangeLog 2022-02-03 19:50:48 UTC (rev 289065)
+++ trunk/Source/bmalloc/ChangeLog 2022-02-03 19:59:26 UTC (rev 289066)
@@ -1,5 +1,18 @@
2022-02-03 Mikhail R. Gadelha <[email protected]>
+ Fix BSD compilation after r289056
+ https://bugs.webkit.org/show_bug.cgi?id=236086
+
+ Unreviewed, fixes missing header in BSD systems.
+
+ The include is moved up so it is included in both UNIX and BSD systems,
+ as adding the include in both #if triggers a code style warning (header
+ included twice), even though the includes are guarded.
+
+ * bmalloc/AvailableMemory.cpp:
+
+2022-02-03 Mikhail R. Gadelha <[email protected]>
+
Fix undefined behavior when querying linux memory size
https://bugs.webkit.org/show_bug.cgi?id=228280
Modified: trunk/Source/bmalloc/bmalloc/AvailableMemory.cpp (289065 => 289066)
--- trunk/Source/bmalloc/bmalloc/AvailableMemory.cpp 2022-02-03 19:50:48 UTC (rev 289065)
+++ trunk/Source/bmalloc/bmalloc/AvailableMemory.cpp 2022-02-03 19:59:26 UTC (rev 289066)
@@ -44,10 +44,10 @@
#import <mach/mach_error.h>
#import <math.h>
#elif BOS(UNIX)
+#include <sys/sysinfo.h>
#if BOS(LINUX)
#include <algorithm>
#include <fcntl.h>
-#include <sys/sysinfo.h>
#elif BOS(FREEBSD)
#include "VMAllocate.h"
#include <sys/sysctl.h>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes