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 84cfb7d..670d26c 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);