1 |
--- lavtools/lavrec.c.orig |
2 |
+++ lavtools/lavrec.c |
3 |
@@ -196,7 +196,9 @@ |
4 |
#include <stdlib.h> |
5 |
#include <unistd.h> |
6 |
#include <termios.h> |
7 |
+#ifdef __linux |
8 |
#include <sys/fsuid.h> |
9 |
+#endif |
10 |
#include <signal.h> |
11 |
#include <fcntl.h> |
12 |
#include <errno.h> |
13 |
@@ -1149,6 +1151,7 @@ |
14 |
sigset_t sigmask; |
15 |
pthread_t input_thread; |
16 |
|
17 |
+#ifdef __linux |
18 |
/* no root please (only during audio setup) */ |
19 |
if (getuid() != geteuid()) |
20 |
{ |
21 |
@@ -1159,6 +1162,7 @@ |
22 |
return 0; |
23 |
} |
24 |
} |
25 |
+#endif |
26 |
|
27 |
info = lavrec_malloc(); |
28 |
info->state_changed = statechanged; |