The second thing is, I'm getting two harmless compile time warnings on the Debian stable VM here:
- bat-hosts.c:79/functions.c:174: warning: implicit declaration of function getline
getline(3) is a GNU extension. The man page says:
#define _GNU_SOURCE #include <stdio.h>
ssize_t getline(char **lineptr, size_t *n, FILE *stream);
I guess it compiles fine on uclibc without the _GNU_SOURCE, but glibc wants you to explicitly enable the extension so you know you are not POSIX compatible.
BTW: batctl has used this for a while now. Anybody had problems with this GNU extension? Is it available for all the C libraries used in embedded systems which use BATMAN?
Andrew