Created attachment 295283 [details, diff] 0003-Check-_WITH_GETLINE-definition.patch Patch to deal with this error on FreeBSD: main.c:221:16: error: static declaration of 'getline' follows non-static declaration /usr/include/stdio.h:370:10: note: previous declaration of 'getline' was here The patch also check if _WIHT_GETLINE is defined
i've deleted the getline() definition. now portage-utils requires the C library to provide the function. http://sources.gentoo.org/gentoo-projects/portage-utils/main.c?r1=1.195&r2=1.196
This breaks at least Solaris where it doesn't exist.