]> git.sesse.net Git - vlc/commitdiff
Add missing 'environ' declaration (fix build on FreeBSD)
authorRafaël Carré <rafael.carre@gmail.com>
Sat, 31 Oct 2009 21:47:53 +0000 (22:47 +0100)
committerRafaël Carré <rafael.carre@gmail.com>
Sat, 31 Oct 2009 21:47:53 +0000 (22:47 +0100)
modules/misc/xdg-screensaver.c

index 84cfb7d77158e10dee85830e262572034f0c165f..670d26c4f978ba0bb29cbedbfa67b9b6630513e0 100644 (file)
@@ -101,6 +101,8 @@ static void Inhibit (vlc_inhibit_t *ih, bool suspend)
         p_sys->id,
         NULL,
     };
+
+    extern char **environ;
     if (posix_spawnp (&pid, "xdg-screensaver", NULL, NULL, argv, environ) == 0)
     {
         msg_Dbg (ih, "started xdg-screensaver (PID = %d)", (int)pid);