[Asterisk-code-review] core/dns: Add system include required on FreeBSD (asterisk[16.10])
Friendly Automation
asteriskteam at digium.com
Tue Apr 28 13:00:28 CDT 2020
Friendly Automation has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/14352 )
Change subject: core/dns: Add system include required on FreeBSD
......................................................................
core/dns: Add system include required on FreeBSD
While testing the latest RC on FreeBSD I noticed this new file fails to build. On FreeBSD inlcuding resolv.h requires sockaddr_in to be defined, and it's defined in netinet/in.h. So I added this include.
ASTERISK-28853 #close
Change-Id: I6997daf3956e6eb70ab6cb358628d162fad80079
---
M main/dns_txt.c
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
Benjamin Keith Ford: Looks good to me, approved
Friendly Automation: Approved for Submit
diff --git a/main/dns_txt.c b/main/dns_txt.c
index 5c1c581..4daae31 100644
--- a/main/dns_txt.c
+++ b/main/dns_txt.c
@@ -27,6 +27,7 @@
#include "asterisk.h"
+#include <netinet/in.h>
#include <resolv.h>
#include "asterisk/dns_core.h"
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14352
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 16.10
Gerrit-Change-Id: I6997daf3956e6eb70ab6cb358628d162fad80079
Gerrit-Change-Number: 14352
Gerrit-PatchSet: 1
Gerrit-Owner: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200428/87fbcbd4/attachment.html>
More information about the asterisk-code-review
mailing list