]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
core/dns: Add system include required on FreeBSD
authorGuido Falsi <madpilot@FreeBSD.org>
Sun, 26 Apr 2020 11:08:49 +0000 (13:08 +0200)
committerJoshua Colp <jcolp@sangoma.com>
Tue, 28 Apr 2020 18:05:55 +0000 (13:05 -0500)
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

main/dns_txt.c

index 5c1c581785bb409df3ce5c41bebce176f3e9c75b..4daae312a12a2e0a53611683eeee9a7cfe344f13 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "asterisk.h"
 
+#include <netinet/in.h>
 #include <resolv.h>
 
 #include "asterisk/dns_core.h"