2025-05-10 21:58:58 +08:00

36 lines
961 B
Diff

From d8b3fa55902f2c6fa60103b9b89c991036105496 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 29 Sep 2021 12:51:17 -0700
Subject: [PATCH] Include sys/stat.h for stat64 definition
fixes
In file included from ../../base/files/file_enumerator.cc:5:
../../base/files/file_enumerator.h:78:20: error: field has incomplete type 'base::stat_wrapper_t' (aka 'stat64')
stat_wrapper_t stat_;
^
../../base/files/file.h:28:8: note: forward declaration of 'stat64'
struct stat64;
^
1 error generated.
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
base/files/file.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/base/files/file.h b/base/files/file.h
index c252375ecd..625c137d2d 100644
--- a/base/files/file.h
+++ b/base/files/file.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <string>
+#include <sys/stat.h>
#include "base/base_export.h"
#include "base/containers/span.h"