From 7a15f670e14e3e14cab191ac8dfb318a9b2b9453 Mon Sep 17 00:00:00 2001 From: Iblis Lin Date: Wed, 4 Jan 2017 16:31:50 +0800 Subject: [PATCH] obs-outputs: fix build error on freebsd There is a build error on freebsd: error: invalid application of 'sizeof' to an incomplete type 'struct sockaddr_in' Include proper header file to solve this. Ref: https://www.freebsd.org/doc/en/books/developers-handbook/sockets-essential-functions.html --- plugins/obs-outputs/net-if.h | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/obs-outputs/net-if.h b/plugins/obs-outputs/net-if.h index 4ff1c76ff..3da69c0c4 100644 --- a/plugins/obs-outputs/net-if.h +++ b/plugins/obs-outputs/net-if.h @@ -29,6 +29,7 @@ # ifdef __linux__ # include # elif __FreeBSD__ +# include # ifndef _GNU_SOURCE # define _GNU_SOURCE # define __NET_IF_GNU_SOURCE__