libxbps: define _WITH_GETLINE for FreeBSD

This commit is contained in:
Michael Gehring 2016-01-26 14:22:23 +01:00
parent 618e504d30
commit ab0d5c847d

View File

@ -26,6 +26,9 @@
#include <sys/utsname.h>
#include <sys/types.h>
#ifdef __FreeBSD__
#define _WITH_GETLINE /* getline() */
#endif
#include <stdio.h>
#include <stdlib.h>
#define _BSD_SOURCE /* required by strlcpy with musl */