1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00
freebsd-ports/multimedia/mjpegtools/files/patch-lavtools__lavrec.c
Martin Wilke 868034aedc - Update to 2.1.0
PR:		185934
Submitted by:	ports fury
2014-02-27 08:36:11 +00:00

29 lines
542 B
C

--- 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;