summaryrefslogtreecommitdiffstats
path: root/main/vlc/uclibc-inhibit-spawn.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-01-30 09:29:41 +0200
committerTimo Teräs <timo.teras@iki.fi>2011-01-30 09:29:41 +0200
commit3a0e1b81adcd1420a5e847f0c117e542cff34fe3 (patch)
tree55a281a15c48ca2bce688d886375b5e598dd8d99 /main/vlc/uclibc-inhibit-spawn.patch
parent6a908b24ca35c697ed6419b1df323a72e8685d79 (diff)
main/vlc: update to 1.1.6 and enable libdvbpsi
Diffstat (limited to 'main/vlc/uclibc-inhibit-spawn.patch')
-rw-r--r--main/vlc/uclibc-inhibit-spawn.patch25
1 files changed, 11 insertions, 14 deletions
diff --git a/main/vlc/uclibc-inhibit-spawn.patch b/main/vlc/uclibc-inhibit-spawn.patch
index 9a6be5bd6ac..1fe27fbab27 100644
--- a/main/vlc/uclibc-inhibit-spawn.patch
+++ b/main/vlc/uclibc-inhibit-spawn.patch
@@ -1,11 +1,9 @@
-diff --git a/modules/misc/inhibit/xdg.c b/modules/misc/inhibit/xdg.c
-index 01decac..134c5c9 100644
---- a/modules/misc/inhibit/xdg.c
+--- a/modules/misc/inhibit/xdg.c.orig
+++ b/modules/misc/inhibit/xdg.c
-@@ -25,7 +25,12 @@
- #include <vlc_common.h>
+@@ -26,7 +26,12 @@
#include <vlc_plugin.h>
#include <vlc_inhibit.h>
+ #include <assert.h>
-#include <spawn.h>
+#if !defined(_POSIX_SPAWN)
+# define _POSIX_SPAWN -1
@@ -16,19 +14,18 @@ index 01decac..134c5c9 100644
#include <sys/wait.h>
static int Open (vlc_object_t *);
-@@ -125,8 +130,15 @@ static void *Thread (void *data)
- };
+@@ -137,7 +142,15 @@
pid_t pid;
- int canc = vlc_savecancel ();
--
+
+ vlc_mutex_unlock (&p_sys->lock);
+#if (_POSIX_SPAWN >= 0)
if (!posix_spawnp (&pid, "xdg-screensaver", NULL, NULL, argv, environ))
+#else
-+ pid = fork();
-+ if (pid == 0) {
-+ execvp("xdg-screensaver", argv);
-+ exit(1);
-+ } else if (pid > 0)
++ pid = fork();
++ if (pid == 0) {
++ execvp("xdg-screensaver", argv);
++ exit(1);
++ } else if (pid > 0)
+#endif
{
int status;