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.
This commit is contained in:
Kris Moore
2015-05-04 21:05:55 +02:00
committed by fryshorts
parent a02f2905b8
commit 013e97ff54
+4
View File
@@ -16,6 +16,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
#ifdef __FreeBSD__
#define _WITH_GETLINE
#endif
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>