OpenBSD has getline() now
This commit is contained in:
parent
e8149c77b3
commit
69e15bba5d
|
@ -13,7 +13,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* For systems without getline, fall back to fgetln */
|
/* 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
|
#define USE_FGETLN
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__)
|
||||||
/* Defining this macro before including stdio.h is necessary in order to have
|
/* Defining this macro before including stdio.h is necessary in order to have
|
||||||
|
|
Loading…
Reference in New Issue