[libgda] Corrected Windows compilation issues with VirtualLock
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Corrected Windows compilation issues with VirtualLock
- Date: Sat, 5 May 2012 19:39:08 +0000 (UTC)
commit f0a107af49857a7b4bedb9f96121a53ca62bd683
Author: Vivien Malerba <malerba gnome-db org>
Date: Sat May 5 21:38:15 2012 +0200
Corrected Windows compilation issues with VirtualLock
libgda/gda-quark-list.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/libgda/gda-quark-list.c b/libgda/gda-quark-list.c
index 10b8abb..4d36328 100644
--- a/libgda/gda-quark-list.c
+++ b/libgda/gda-quark-list.c
@@ -30,6 +30,10 @@
#ifdef USE_MLOCK
#include <sys/mman.h>
#endif
+#ifdef G_OS_WIN32
+#include <windows.h>
+#include <winbase.h>
+#endif
#define RANDOM_BLOB_SIZE 1024
static gchar random_blob [RANDOM_BLOB_SIZE] = {0};
@@ -142,7 +146,7 @@ protected_value_xor (ProtectedValue *pvalue, gboolean to_clear)
break;
}
#ifdef G_OS_WIN32
- VirtualUnLock (pvalue->cvalue, sizeof (gchar*) * (i + 1));
+ VirtualUnlock (pvalue->cvalue, sizeof (gchar*) * (i + 1));
#else
#ifdef USE_MLOCK
munlock (pvalue->cvalue, sizeof (gchar*) * (i + 1));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]