Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/multimedia/dvb-apps/files/patch-util_gnutv_gnutv__data.c
16461 views
1
--- util/gnutv/gnutv_data.c.orig 2014-03-21 19:26:36 UTC
2
+++ util/gnutv/gnutv_data.c
3
@@ -33,8 +33,10 @@
4
#include <pthread.h>
5
#include <errno.h>
6
#include <sys/poll.h>
7
+#include <sys/types.h>
8
#include <sys/socket.h>
9
#include <netinet/in.h>
10
+#include <netdb.h>
11
#include <arpa/inet.h>
12
#include <libdvbapi/dvbdemux.h>
13
#include <libdvbapi/dvbaudio.h>
14
@@ -137,7 +139,8 @@ void gnutv_data_start(int _output_type,
15
16
// bind to local interface if requested
17
if (outif != NULL) {
18
- if (setsockopt(outfd, SOL_SOCKET, SO_BINDTODEVICE, outif, strlen(outif)) < 0) {
19
+ if (1 /*setsockopt(outfd, SOL_SOCKET, SO_BINDTODEVICE, outif, strlen(outif)) < 0*/) {
20
+ fprintf(stderr, "SO_BINDTODEVICE not supported on FreeBSD\n");
21
fprintf(stderr, "Failed to bind to interface %s\n", outif);
22
exit(1);
23
}
24
25