[patches] [PATCH] Fix FreeBSD build

Konstantin Belyavskiy k.belyavskiy at tarantool.org
Tue Mar 6 20:15:20 MSK 2018


Under FreeBSD getline prototype is not provided by
default due to compatibility problems.
Use _GNU_SOURCE macro to solve this issue.
Based on @zloidemon proposal.

Closes #3217.
---
branch: gh-3217-enable-getline-prototype-freebsd
 test/unit/say.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/unit/say.c b/test/unit/say.c
index 4e4b3f94e..dd027951b 100644
--- a/test/unit/say.c
+++ b/test/unit/say.c
@@ -1,3 +1,7 @@
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+
 #include <string.h>
 #include <fiber.h>
 #include <memory.h>
-- 
2.14.3 (Apple Git-98)




More information about the Tarantool-patches mailing list