Fix prototype of poll
from poll(struct pollfd *, nfds_t, long) to
poll(struct pollfd *, nfds_t, int)
See 11952073af22568bba0b661f7a9d4402c443a888
and ebfbb367fb
Change-Id: Idba600d4b172404f0a1d5d715febcba8a495a770
This commit is contained in:
@@ -35,8 +35,7 @@ __BEGIN_DECLS
|
|||||||
|
|
||||||
typedef unsigned int nfds_t;
|
typedef unsigned int nfds_t;
|
||||||
|
|
||||||
/* POSIX specifies "int" for the timeout, Linux seems to use long... */
|
extern int poll(struct pollfd *, nfds_t, int);
|
||||||
extern int poll(struct pollfd *, nfds_t, long);
|
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ static inline short change_mips_events(short mips_events)
|
|||||||
|
|
||||||
extern int poll(struct pollfd *, nfds_t, int);
|
extern int poll(struct pollfd *, nfds_t, int);
|
||||||
|
|
||||||
int WRAP(poll)(struct pollfd *fds, nfds_t nfds, long timeout)
|
int WRAP(poll)(struct pollfd *fds, nfds_t nfds, int timeout)
|
||||||
{
|
{
|
||||||
nfds_t i;
|
nfds_t i;
|
||||||
int ret;
|
int ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user