i3-config-wizard: use fgetln on OpenBSD, too (Thanks David Coppa)

This commit is contained in:
Michael Stapelberg 2012-02-21 15:23:58 +01:00
parent d085e88d02
commit 45d5f1fbaa

View File

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