From: Michael Stapelberg Date: Tue, 21 Feb 2012 14:23:58 +0000 (+0100) Subject: i3-config-wizard: use fgetln on OpenBSD, too (Thanks David Coppa) X-Git-Tag: 4.2~53 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=45d5f1fbaa9a1d27ac22e33e5c4080d4e6fe9352;p=i3%2Fi3 i3-config-wizard: use fgetln on OpenBSD, too (Thanks David Coppa) --- diff --git a/i3-config-wizard/main.c b/i3-config-wizard/main.c index cf55c38c..be042673 100644 --- a/i3-config-wizard/main.c +++ b/i3-config-wizard/main.c @@ -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