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
This commit is contained in:
Iblis Lin 2017-01-04 16:31:50 +08:00
parent 34f48aa3fc
commit 7a15f670e1

View File

@ -29,6 +29,7 @@
# ifdef __linux__
# include <linux/if_link.h>
# elif __FreeBSD__
# include <netinet/in.h>
# ifndef _GNU_SOURCE
# define _GNU_SOURCE
# define __NET_IF_GNU_SOURCE__