OpenBSD has getline() now

This commit is contained in:
David Coppa 2012-12-06 12:30:14 +01:00 committed by Michael Stapelberg
parent e8149c77b3
commit 69e15bba5d
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
#endif
/* For systems without getline, fall back to fgetln */
#if defined(__APPLE__) || (defined(__FreeBSD__) && __FreeBSD_version < 800000) || defined(__OpenBSD__)
#if defined(__APPLE__) || (defined(__FreeBSD__) && __FreeBSD_version < 800000)
#define USE_FGETLN
#elif defined(__FreeBSD__)
/* Defining this macro before including stdio.h is necessary in order to have