From 8b01f3e81ea1b54ad2d192d30dc0913e886d2a35 Mon Sep 17 00:00:00 2001 From: Lucas Bajolet Date: Thu, 11 Dec 2014 16:52:34 -0500 Subject: [PATCH] lib: Fixed signature for poll in PNaCl Signed-off-by: Lucas Bajolet --- lib/pnacl.nit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pnacl.nit b/lib/pnacl.nit index bc876c0..bd25a22 100644 --- a/lib/pnacl.nit +++ b/lib/pnacl.nit @@ -46,6 +46,7 @@ in "C Header" `{ #include #include #include + #include #define MAX_DICTIONARY_QUEUE_SIZE 200 #define MAX_MESSAGE_QUEUE_SIZE 10 @@ -360,7 +361,7 @@ in "C Header" `{ } /* Hack in order to avoid the problem with file. */ - int poll(void *fds, int nfds, int timeout) { return 0; } + int poll(struct pollfd* fds, nfds_t nfds, int timeout) { return 0; } `} # Nit class representing a Pepper C API PP_Var typed as a Dictionary. -- 1.7.9.5