Public bug reported:

in file /usr/arm-linux-androideabi/include/poll.h it says

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

However if you download the official Android toolchain from Google, or Bionic 
the prototype is
extern int poll(struct pollfd*, nfds_t, int);
even going back to Android 3 which is the oldest shipped version.

I don't know the source of your copy of bionic, but it must be rather
old I think. It also includes a pthread.a, which there is not in any
current version either.

I think it would be helpful to ship a more recent version - I am rather
hesitant to recommend using this one as it probably also has security
bugs unfixed, and as binaries are likely to be statically linked this is
an issue - as Android applications produced with it may be affected.

** Affects: gcc-arm-linux-androideabi (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1389908

Title:
  incorrect prototype for poll()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-arm-linux-androideabi/+bug/1389908/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to