Skip to content

Commit 4abacac

Browse files
Andrew HsiehGerrit Code Review
authored andcommitted
Merge "Fix prototype of poll"
2 parents 07bdc2b + 61097c7 commit 4abacac

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)