[tarantool-patches] [PATCH 2/3] Add <netinet/in.h> include on FreeBSD
Alexander Turenko
alexander.turenko at tarantool.org
Sat Nov 3 07:29:33 MSK 2018
FreeBSD does not include headers recursively, so we need to include it
explicitly at least for using IPPROTO_UDP macro.
Thanks Po-Chuan Hsieh (@sunpoet) for the fix proposal (PR #3739).
Fixes #3677.
---
src/say.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/say.c b/src/say.c
index 7f018ec11..860176ac2 100644
--- a/src/say.c
+++ b/src/say.c
@@ -37,6 +37,7 @@
#include <stdio.h>
#include <string.h>
#include <netdb.h>
+#include <netinet/in.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
--
2.19.1
More information about the Tarantool-patches
mailing list