[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH]: poll module issue on Win32
From: |
Paolo Bonzini |
Subject: |
Re: [PATCH]: poll module issue on Win32 |
Date: |
Fri, 12 Sep 2008 10:45:15 +0200 |
User-agent: |
Thunderbird 2.0.0.16 (Macintosh/20080707) |
> I tried updating the poll module with your patch, but it's not
> compiling:
Thanks.
diff --git a/modules/poll b/modules/poll
index 3ac7c8c..dab66d4 100644
--- a/modules/poll
+++ b/modules/poll
@@ -7,6 +7,7 @@ lib/poll.in.h
m4/poll.m4
Depends-on:
+alloca
sys_select
sys_time
EOVERFLOW
diff --git a/lib/poll.c b/lib/poll.c
index f4cbae8..772ee4b 100644
--- a/lib/poll.c
+++ b/lib/poll.c
@@ -20,6 +20,7 @@
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#include <config.h>
+#include <alloca.h>
#include <sys/types.h>
#include "poll.h"
@@ -83,7 +84,9 @@ typedef struct _IO_STATUS_BLOCK
ULONG_PTR Information;
} IO_STATUS_BLOCK, *PIO_STATUS_BLOCK;
-#define FilePipeLocalInformation 24
+typedef enum _FILE_INFORMATION_CLASS {
+ FilePipeLocalInformation = 24
+} FILE_INFORMATION_CLASS, *PFILE_INFORMATION_CLASS;
typedef DWORD (WINAPI *PNtQueryInformationFile)
(HANDLE, IO_STATUS_BLOCK *, VOID *, ULONG, FILE_INFORMATION_CLASS);
I also CCed you on another patch to improve Winsock portability.
Paolo
- [PATCH]: poll module issue on Win32, Yoann Vandoorselaere, 2008/09/11
- Re: [PATCH]: poll module issue on Win32, Paolo Bonzini, 2008/09/11
- Re: [PATCH]: poll module issue on Win32, Bruno Haible, 2008/09/11
- Re: [PATCH]: poll module issue on Win32, Paolo Bonzini, 2008/09/12
- Re: [PATCH]: poll module issue on Win32, Yoann Vandoorselaere, 2008/09/12
- Re: [PATCH]: poll module issue on Win32,
Paolo Bonzini <=
- Re: [PATCH]: poll module issue on Win32, Yoann Vandoorselaere, 2008/09/12
- Re: [PATCH]: poll module issue on Win32, Paolo Bonzini, 2008/09/12
- Re: [PATCH]: poll module issue on Win32, Yoann Vandoorselaere, 2008/09/12
- Re: [PATCH]: poll module issue on Win32, Paolo Bonzini, 2008/09/12
- Re: [PATCH]: poll module issue on Win32, Yoann Vandoorselaere, 2008/09/12