aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtpproxy/DEFFILEMODE.patch
blob: 013d150b71f8929cc957a3d9415458b525fca736 (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
diff --git a/src/main.c b/src/main.c
index 95b8232..f117fb9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -106,6 +106,11 @@
 # define RTPP_DEBUG	1
 #endif
 
+/* Required for musl */
+#ifndef DEFFILEMODE
+# define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) /*0666*/
+#endif
+
 static void usage(void);
 
 #ifdef RTPP_CHECK_LEAKS

diff --git a/src/rtpp_record.c b/src/rtpp_record.c
index e0b10a9..0a4f315 100644
--- a/src/rtpp_record.c
+++ b/src/rtpp_record.c
@@ -70,6 +70,11 @@
 #include "rtpp_pipe.h"
 #include "rtpp_netaddr.h"
 
+/* Required for musl */
+#ifndef DEFFILEMODE
+# define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) /*0666*/
+#endif
+
 enum record_mode {MODE_LOCAL_PKT, MODE_REMOTE_RTP, MODE_LOCAL_PCAP}; /* MODE_LOCAL_RTP/MODE_REMOTE_PKT? */
 
 struct rtpp_record_channel {

diff --git a/modules/acct_csv/rtpp_acct_csv.c b/modules/acct_csv/rtpp_acct_csv.c
index bd065ea..3ec9494 100644
--- a/modules/acct_csv/rtpp_acct_csv.c
+++ b/modules/acct_csv/rtpp_acct_csv.c
@@ -54,6 +54,11 @@
 
 #define SSRC_STRLEN 11
 
+/* Required for musl */
+#ifndef DEFFILEMODE
+# define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) /*0666*/
+#endif
+
 struct rtpp_mod_acct_face {
    char rtp_adr[MAX_AP_STRBUF];
    char rtcp_adr[MAX_AP_STRBUF];