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 <dcheng@chromium.org>
Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1066486}
This commit is contained in:
Elly Fong-Jones 2022-11-02 15:29:48 +00:00 committed by klzgrad
parent c1b789a825
commit f032d7911c

View File

@ -54,6 +54,8 @@
#ifndef BASE_SYMBOLIZE_H_ #ifndef BASE_SYMBOLIZE_H_
#define BASE_SYMBOLIZE_H_ #define BASE_SYMBOLIZE_H_
#include <sys/types.h> // for ssize_t
#include "utilities.h" #include "utilities.h"
#include "config.h" #include "config.h"
#include "glog/logging.h" #include "glog/logging.h"