Skip to content

Commit 61097c7

Browse files
author
Andrew Hsieh
committed
Fix prototype of poll
from poll(struct pollfd *, nfds_t, long) to poll(struct pollfd *, nfds_t, int) See 11952073af22568bba0b661f7a9d4402c443a888 and ebfbb36 Change-Id: Idba600d4b172404f0a1d5d715febcba8a495a770
1 parent 55530bf commit 61097c7

File tree

2 files changed

+2
-3
lines changed
  • ndk
    • platforms/android-3/include
    • sources/android/libportable/arch-mips

2 files changed

+2
-3
lines changed

ndk/platforms/android-3/include/poll.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ __BEGIN_DECLS
3535

3636
typedef unsigned int nfds_t;
3737

38-
/* POSIX specifies "int" for the timeout, Linux seems to use long... */
39-
extern int poll(struct pollfd *, nfds_t, long);
38+
extern int poll(struct pollfd *, nfds_t, int);
4039

4140
__END_DECLS
4241

ndk/sources/android/libportable/arch-mips/poll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static inline short change_mips_events(short mips_events)
106106

107107
extern int poll(struct pollfd *, nfds_t, int);
108108

109-
int WRAP(poll)(struct pollfd *fds, nfds_t nfds, long timeout)
109+
int WRAP(poll)(struct pollfd *fds, nfds_t nfds, int timeout)
110110
{
111111
nfds_t i;
112112
int ret;

0 commit comments

Comments
 (0)