note: I guess it could also be bionic vs libc header files... but per man ffs: http://man7.org/linux/man-pages/man3/ffs.3.html #include <strings.h> int ffs(int i); #include <string.h> int ffsl(long int i); int ffsll(long long int i); strings.h is the right header file.