summaryrefslogtreecommitdiffstats
path: root/package/multicat/0001-Fix-build-with-musl-libc.patch
blob: d68b861a1d2806bbeb72fa2b1e2c371397789c71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
From 19c37f8d02cfe3a0490981cd9c3370fe544b76ac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20Vasseur?= <clement.vasseur@gmail.com>
Date: Thu, 30 Nov 2017 16:05:49 +0000
Subject: [PATCH] Fix build with musl libc

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
Upstream status: commit 19c37f8d02cf

 multicat.c | 7 ++-----
 util.h     | 3 ++-
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/multicat.c b/multicat.c
index eeab930fc1db..e8b6874d6f4c 100644
--- a/multicat.c
+++ b/multicat.c
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * multicat.c: netcat-equivalent for multicast
  *****************************************************************************
- * Copyright (C) 2009, 2011-2012, 2015-2016 VideoLAN
+ * Copyright (C) 2009, 2011-2012, 2015-2017 VideoLAN
  * $Id$
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
@@ -43,10 +43,7 @@
 #include <poll.h>
 #include <sys/ioctl.h>
 #include <syslog.h>
-
-#ifdef __FreeBSD__
-#   include <sys/uio.h>
-#endif
+#include <sys/uio.h>
 
 #ifdef SIOCGSTAMPNS
 #   define HAVE_TIMESTAMPS
diff --git a/util.h b/util.h
index 1959a2edb155..724e7d843d22 100644
--- a/util.h
+++ b/util.h
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * util.h: Utils for the multicat suite
  *****************************************************************************
- * Copyright (C) 2009, 2011, 2014-2016 VideoLAN
+ * Copyright (C) 2009, 2011, 2014-2017 VideoLAN
  * $Id$
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
@@ -23,6 +23,7 @@
 
 #include <netinet/udp.h>
 #include <netinet/ip.h>
+#include <sys/types.h>
 
 #if defined(__APPLE__) || defined(__FreeBSD__)
 #define POLLRDHUP 0
-- 
2.17.0

OpenPOWER on IntegriCloud