blob: b5619c32116c41dd3c15f16b51ff427ce7ba8d39 (
plain) (
blame)
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
|
--- lavtools/lavrec.c.orig
+++ lavtools/lavrec.c
@@ -196,7 +196,9 @@
#include <stdlib.h>
#include <unistd.h>
#include <termios.h>
+#ifdef __linux
#include <sys/fsuid.h>
+#endif
#include <signal.h>
#include <fcntl.h>
#include <errno.h>
@@ -1149,6 +1151,7 @@
sigset_t sigmask;
pthread_t input_thread;
+#ifdef __linux
/* no root please (only during audio setup) */
if (getuid() != geteuid())
{
@@ -1159,6 +1162,7 @@
return 0;
}
}
+#endif
info = lavrec_malloc();
info->state_changed = statechanged;
|