Commit 018a1aca authored by Rafaël Carré's avatar Rafaël Carré

Add missing 'environ' declaration (fix build on FreeBSD)

parent e6e65945
...@@ -101,6 +101,8 @@ static void Inhibit (vlc_inhibit_t *ih, bool suspend) ...@@ -101,6 +101,8 @@ static void Inhibit (vlc_inhibit_t *ih, bool suspend)
p_sys->id, p_sys->id,
NULL, NULL,
}; };
extern char **environ;
if (posix_spawnp (&pid, "xdg-screensaver", NULL, NULL, argv, environ) == 0) if (posix_spawnp (&pid, "xdg-screensaver", NULL, NULL, argv, environ) == 0)
{ {
msg_Dbg (ih, "started xdg-screensaver (PID = %d)", (int)pid); msg_Dbg (ih, "started xdg-screensaver (PID = %d)", (int)pid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment