[glom/glom-1-20] Add a fcntl.h include.



commit 81d04543e54ef2fa086f8dda64b77433c24f2782
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Mar 1 09:04:16 2012 +0100

    Add a fcntl.h include.
    
    * glom/libglom/utils.cc: Include fcntl.h to fix the mingw build
    on Windows.
    Bug #670903 (alien)

 ChangeLog             |    8 ++++++++
 glom/libglom/utils.cc |    2 ++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 709527b..d8bd707 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-03-01  Murray Cumming  <murrayc murrayc com>
+
+	Add a fcntl.h include.
+
+	* glom/libglom/utils.cc: Include fcntl.h to fix the mingw build
+	on Windows.
+	Bug #670903 (alien)
+
 1.20.9:
 
 2012-02-13  Murray Cumming  <murrayc murrayc com>
diff --git a/glom/libglom/utils.cc b/glom/libglom/utils.cc
index 78b2453..392f535 100644
--- a/glom/libglom/utils.cc
+++ b/glom/libglom/utils.cc
@@ -45,6 +45,8 @@
 
 #include <stack>
 
+#include <fcntl.h> //For close(). This include is needed in mingw on MS Windows.
+
 namespace Glom
 {
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]