From f032d7911c59a6bcc288519ff30c4381e2912375 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"