Hi, all! I'm recently trying to port a x86 linux application to Android platform, using android-ndk 1.6 and ndk wrapper. When compiling the codes I met the following problem:
My codes uses usleep() function defined in <unistd.h> and tries to get its return value like this: return usleep(microseconds * 1000); However, <unistd.h> in x86 system defines usleep as extern int usleep ( __useconds_t __useconds ); while <unistd.h> in Android NDK defines it as extern void usleep(unsigned long); Now I had to change my code as: usleep( microseconds * 1000 ); return 0; I'm not sure if it's safe to do so. Does anyone have some idea about this? Or a better solution? Thanks very much! Mundou -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

