Tarantool development patches archive
 help / color / mirror / Atom feed
From: Alexander Turenko <alexander.turenko@tarantool.org>
To: Kirill Yukhin <kyukhin@tarantool.org>
Cc: Alexander Turenko <alexander.turenko@tarantool.org>,
	tarantool-patches@freelists.org
Subject: [tarantool-patches] [PATCH 2/3] Add <netinet/in.h> include on FreeBSD
Date: Sat,  3 Nov 2018 07:29:33 +0300	[thread overview]
Message-ID: <8d8e5597b6394c6882c4d64d1a6b88ccaac5e1d6.1541219191.git.alexander.turenko@tarantool.org> (raw)
In-Reply-To: <cover.1541219191.git.alexander.turenko@tarantool.org>

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

  parent reply	other threads:[~2018-11-03  4:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-03  4:29 [tarantool-patches] [PATCH 0/3] Fix FreeBSD build Alexander Turenko
2018-11-03  4:29 ` [tarantool-patches] [PATCH 1/3] Update README.FreeBSD Alexander Turenko
2018-11-03  4:29 ` Alexander Turenko [this message]
2018-11-03  4:29 ` [tarantool-patches] [PATCH 3/3] Make libdl.so optional (for FreeBSD prior to 11.2) Alexander Turenko
2018-11-03  6:23 ` [tarantool-patches] [PATCH 0/3] Fix FreeBSD build Vladimir Davydov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8d8e5597b6394c6882c4d64d1a6b88ccaac5e1d6.1541219191.git.alexander.turenko@tarantool.org \
    --to=alexander.turenko@tarantool.org \
    --cc=kyukhin@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [tarantool-patches] [PATCH 2/3] Add <netinet/in.h> include on FreeBSD' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox