From 0236b16114dda5faf3dccabee147dfdd55c256ce Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Wed, 16 Nov 2016 01:50:48 +0800 Subject: include config.h to allow using getline on freebsd We need _GNU_SOURCE macro defined in config.h to enable the declaration of getline in FreeBSD stdio.h. https://github.com/libpinyin/libpinyin/issues/65 --- tests/storage/test_matrix.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/storage/test_matrix.cpp') diff --git a/tests/storage/test_matrix.cpp b/tests/storage/test_matrix.cpp index b6af231..a746927 100644 --- a/tests/storage/test_matrix.cpp +++ b/tests/storage/test_matrix.cpp @@ -18,6 +18,10 @@ * along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "timer.h" #include #include "pinyin_internal.h" -- cgit