In the previous versions of the NDK there wasn't an include for sys/statvfs.h
In the current version there is and the preprocessor directive to #define statvfs statfs when ANDROID (underscores omitted) is defined. This is interfering with compiling other libraries and also unnecessary. (on the new NDK only)
I removed the condition you put in place to make it compile when sys/statvfs.h wasn't available. Then the programs using your lib compiles and works on my android device.
The work-around for pthread is still necessary. I only removed the need to change f_namemax to f_namelen.
I would submit a patch if I had more experience to handle this. Could configure check for the presence of sys/statvfs.h?
In the previous versions of the NDK there wasn't an include for sys/statvfs.h
In the current version there is and the preprocessor directive to #define statvfs statfs when ANDROID (underscores omitted) is defined. This is interfering with compiling other libraries and also unnecessary. (on the new NDK only)
I removed the condition you put in place to make it compile when sys/statvfs.h wasn't available. Then the programs using your lib compiles and works on my android device.
The work-around for pthread is still necessary. I only removed the need to change f_namemax to f_namelen.
I would submit a patch if I had more experience to handle this. Could configure check for the presence of sys/statvfs.h?