From: Julian Smart <julian@anthemion.co.uk>
Date: Wed, 15 Jan 2003 08:17:25 +0000 (+0000)
Subject: Patch for Winlib: struct stat is defined in sys/stat.h, which is not
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/732b838637e8c6d3af1ae0a91023201bd376c9f7

Patch for Winlib: struct stat is defined in sys/stat.h, which is not
pulled in by unistd.h on some system.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/common/file.cpp b/src/common/file.cpp
index 45e94a868d..c02203f65c 100644
--- a/src/common/file.cpp
+++ b/src/common/file.cpp
@@ -56,6 +56,7 @@
 
 #elif (defined(__UNIX__) || defined(__GNUWIN32__))
     #include  <unistd.h>
+    #include  <sys/stat.h>
     #ifdef __GNUWIN32__
         #include <windows.h>
     #endif