[glom] Add a unistd.h include to fix the mingw MS Windows build.



commit 220b862e8f24280ab5d4c92e20fca63c69cb9568
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Mar 1 12:47:27 2012 +0100

    Add a unistd.h include to fix the mingw MS Windows build.
    
    * glom/glom_create_from_example.cc: include unistd.h for getpass().
    Bug #671120 (alien)

 ChangeLog                        |    7 +++++++
 glom/glom_create_from_example.cc |    2 ++
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 44d0283..8c5ea43 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2012-03-01  Murray Cumming  <murrayc murrayc com>
 
+	Add a unistd.h include to fix the mingw MS Windows build.
+
+	* glom/glom_create_from_example.cc: include unistd.h for getpass().
+	Bug #671120 (alien)
+
+2012-03-01  Murray Cumming  <murrayc murrayc com>
+
 	Make auto-increment fields work even if they are not primary keys.
 
 	* glom/libglom/db_utils.h: get_next_auto_increment_value(): Document that
diff --git a/glom/glom_create_from_example.cc b/glom/glom_create_from_example.cc
index cc69008..bfd6e6d 100644
--- a/glom/glom_create_from_example.cc
+++ b/glom/glom_create_from_example.cc
@@ -38,6 +38,8 @@
 #include <iostream>
 #include <stdexcept>
 
+#include <unistd.h> //For getpass().
+
 #include <glibmm/i18n.h>
 
 class GlomCreateOptionGroup : public Glib::OptionGroup



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