[Asterisk-code-review] core/dns: Add system include required on FreeBSD (asterisk[17.4])

Joshua Colp asteriskteam at digium.com
Tue Apr 28 13:04:41 CDT 2020


Joshua Colp has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/14353 )

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
  Joshua Colp: 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/+/14353
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 17.4
Gerrit-Change-Id: I6997daf3956e6eb70ab6cb358628d162fad80079
Gerrit-Change-Number: 14353
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-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200428/101f34c8/attachment-0001.html>


More information about the asterisk-code-review mailing list