From 611b3bdcf9e3ea4ab1bd782c6e6fc96ecd3c7399 Mon Sep 17 00:00:00 2001 From: Elly Fong-Jones Date: Wed, 2 Nov 2022 15:29:48 +0000 Subject: [PATCH] base: include sys/types.h in symbolize.h It is needed for ssize_t. In glibc specifically, ssize_t happens to get transitively included by some other header - I'm not sure exactly what - but POSIX says ssize_t is in sys/types.h and in other libcs the included is needed for the type. Bug: 1380656 Change-Id: Ibeef8c80f44595b6056fc1be8a104ab7428aa8bb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3997878 Reviewed-by: Daniel Cheng Commit-Queue: Elly Fong-Jones Cr-Commit-Position: refs/heads/main@{#1066486} --- src/base/third_party/symbolize/symbolize.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/base/third_party/symbolize/symbolize.h b/src/base/third_party/symbolize/symbolize.h index 2a55c688ae..987569fdde 100644 --- a/src/base/third_party/symbolize/symbolize.h +++ b/src/base/third_party/symbolize/symbolize.h @@ -54,6 +54,8 @@ #ifndef BASE_SYMBOLIZE_H_ #define BASE_SYMBOLIZE_H_ +#include // for ssize_t + #include "utilities.h" #include "config.h" #include "glog/logging.h"