summaryrefslogtreecommitdiff
path: root/recipes/glib
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-10-20 18:01:46 +0300
committerSebastian Dröge <sebastian@centricular.com>2015-10-20 18:01:46 +0300
commit02245a8de6fc828652fc1a7206708d78b30fd9e8 (patch)
treeba95e83e75b4d73d740b7fe419ed534d21afc7b6 /recipes/glib
parent89995e8a30a37efe560c7b87d2e2b2ae6e643592 (diff)
glib: Fix compilation on Windows
Diffstat (limited to 'recipes/glib')
-rw-r--r--recipes/glib/0020-Include-ntdef.h-for-NTSTATUS.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes/glib/0020-Include-ntdef.h-for-NTSTATUS.patch b/recipes/glib/0020-Include-ntdef.h-for-NTSTATUS.patch
new file mode 100644
index 00000000..80b661e9
--- /dev/null
+++ b/recipes/glib/0020-Include-ntdef.h-for-NTSTATUS.patch
@@ -0,0 +1,27 @@
+From 70aea6bcd4cf340623435269cbc797adfc84aa8b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
+Date: Tue, 20 Oct 2015 17:36:33 +0300
+Subject: [PATCH] Include ntdef.h for NTSTATUS
+
+---
+ glib/gwin32.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/glib/gwin32.c b/glib/gwin32.c
+index 7781c04..a0cbd1d 100644
+--- a/glib/gwin32.c
++++ b/glib/gwin32.c
+@@ -51,6 +51,10 @@
+
+ #define MODERN_API_FAMILY 2
+
++#if WINAPI_FAMILY != MODERN_API_FAMILY
++# include <ntdef.h>
++#endif
++
+ #if WINAPI_FAMILY == MODERN_API_FAMILY
+ /* This is for modern UI Builds, where we can't use LoadLibraryW()/GetProcAddress() */
+ /* ntddk.h is found in the WDK, and MinGW */
+--
+2.6.1
+