OSDN Git Service

Fix last commit breaking compilation due to "struct stat" vs. "struct _stat".
authorJochen Tucht <jtuc@users.sourceforge.net>
Sun, 13 Jun 2010 15:18:34 +0000 (15:18 +0000)
committerJochen Tucht <jtuc@users.sourceforge.net>
Sun, 13 Jun 2010 15:18:34 +0000 (15:18 +0000)
Src/DiffFileData.cpp
Src/diffutils/src/DIFF.H

index f4e2e8d..6cf7e0d 100644 (file)
@@ -102,7 +102,7 @@ bool DiffFileData::DoOpenFiles()
                        return false;
 
                // Get file stats (diffutils uses these)
-               if (fstat(m_inf[i].desc, &m_inf[i].stat) != 0)
+               if (_fstat(m_inf[i].desc, &m_inf[i].stat) != 0)
                {
                        return false;
                }
index 9953423..4777888 100644 (file)
@@ -227,7 +227,7 @@ struct change
 struct file_data {
     int             desc;      /* File descriptor  */
     char const      *name;     /* File name  */
-    struct stat     stat;      /* File status from fstat()  */
+    struct _stat    stat;      /* File status from fstat()  */
     int             dir_p;     /* nonzero if file is a directory  */
 
     /* Buffer in which text of file is read.  */