nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Parallelization phase improvement
[nit.git]
/
lib
/
pnacl.nit
diff --git
a/lib/pnacl.nit
b/lib/pnacl.nit
index
4008422
..
516c860
100644
(file)
--- a/
lib/pnacl.nit
+++ b/
lib/pnacl.nit
@@
-44,6
+44,7
@@
in "C Header" `{
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
+ #include <poll.h>
#define MAX_DICTIONARY_QUEUE_SIZE 200
#define MAX_MESSAGE_QUEUE_SIZE 10
#define MAX_DICTIONARY_QUEUE_SIZE 200
#define MAX_MESSAGE_QUEUE_SIZE 10
@@
-358,7
+359,7
@@
in "C Header" `{
}
/* Hack in order to avoid the problem with file. */
}
/* 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.
`}
# Nit class representing a Pepper C API PP_Var typed as a Dictionary.
@@
-629,9
+630,9
@@
end
# A stream for PNaCl, redefines basic input and output methods.
class PnaclStream
# A stream for PNaCl, redefines basic input and output methods.
class PnaclStream
- super PollableIStream
- super OStream
- super BufferedIStream
+ super PollableReader
+ super Writer
+ super BufferedReader
init do prepare_buffer(10)
init do prepare_buffer(10)