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

Guido Falsi asteriskteam at digium.com
Sun Apr 26 06:11:27 CDT 2020


Guido Falsi has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/14326 )


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(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/26/14326/1

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

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I6997daf3956e6eb70ab6cb358628d162fad80079
Gerrit-Change-Number: 14326
Gerrit-PatchSet: 1
Gerrit-Owner: Guido Falsi <madpilot at freebsd.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200426/69fdff99/attachment.html>


More information about the asterisk-code-review mailing list