Is patch ok for apply?

Kai
From 24f6b8d72d1fd77c66bf6bacd403d8296c3f92ac Mon Sep 17 00:00:00 2001
From: Kai Tietz <[email protected]>
Date: Mon, 25 Aug 2014 22:26:10 +0200
Subject: Add winapi-family check, correct HPORT type to be derived by HANDLE.

---
 mingw-w64-headers/include/rasshost.h |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/mingw-w64-headers/include/rasshost.h 
b/mingw-w64-headers/include/rasshost.h
index 6192c3d..ea88a7b 100644
--- a/mingw-w64-headers/include/rasshost.h
+++ b/mingw-w64-headers/include/rasshost.h
@@ -1,14 +1,17 @@
 /**
- * This file has no copyright assigned and is placed in the Public Domain.
  * This file is part of the mingw-w64 runtime package.
- * No warranty is given; refer to the file DISCLAIMER.PD within this package.
+ * No warranty is given; refer to the file DISCLAIMER within this package.
  */
 #ifndef _RASSHOST_
 #define _RASSHOST_
 
+#include <winapifamily.h>
+
+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
+
 #include <mprapi.h>
 
-typedef DWORD HPORT;
+typedef HANDLE HPORT;
 
 typedef struct _SECURITY_MESSAGE {
   DWORD dwMsgId;
@@ -38,3 +41,4 @@ DWORD WINAPI RasSecurityDialogReceive(HPORT hPort,PBYTE 
pBuffer,PWORD pBufferLen
 DWORD WINAPI RasSecurityDialogGetInfo(HPORT hPort,RAS_SECURITY_INFO *pBuffer);
 
 #endif
+#endif
-- 
1.7.9

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to