1From d8b3fa55902f2c6fa60103b9b89c991036105496 Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Wed, 29 Sep 2021 12:51:17 -0700 4Subject: [PATCH] Include sys/stat.h for stat64 definition 5 6fixes 7In file included from ../../base/files/file_enumerator.cc:5: 8../../base/files/file_enumerator.h:78:20: error: field has incomplete type 'base::stat_wrapper_t' (aka 'stat64') 9 stat_wrapper_t stat_; 10 ^ 11../../base/files/file.h:28:8: note: forward declaration of 'stat64' 12struct stat64; 13 ^ 141 error generated. 15 16Upstream-Status: Pending 17 18Signed-off-by: Khem Raj <raj.khem@gmail.com> 19 20--- 21 base/files/file.h | 1 + 22 1 file changed, 1 insertion(+) 23 24diff --git a/base/files/file.h b/base/files/file.h 25index c252375ecd..625c137d2d 100644 26--- a/base/files/file.h 27+++ b/base/files/file.h 28@@ -8,6 +8,7 @@ 29 #include <stdint.h> 30 31 #include <string> 32+#include <sys/stat.h> 33 34 #include "base/base_export.h" 35 #include "base/containers/span.h" 36