From 013e97ff544efafb8e2c89d22f9df3f9b73ef266 Mon Sep 17 00:00:00 2001 From: Kris Moore Date: Fri, 1 May 2015 22:05:00 +0200 Subject: [PATCH] libobs: Fix missing getline on FreeBSD Add definition on FreeBSD to enable getline in stdio, as it is not (yet ?) available by default. According to the manpage getline was a GNU extension but was standardized in POSIX.1-2008. --- libobs/obs-nix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libobs/obs-nix.c b/libobs/obs-nix.c index 34dcc7e0f..4a48b0aaf 100644 --- a/libobs/obs-nix.c +++ b/libobs/obs-nix.c @@ -16,6 +16,10 @@ along with this program. If not, see . ******************************************************************************/ +#ifdef __FreeBSD__ +#define _WITH_GETLINE +#endif + #include #include #include