[vlc-devel] commit: Add missing 'environ' declaration (fix build on FreeBSD) ( Rafaël Carré )

git version control git at videolan.org
Sun Nov 1 00:18:41 CET 2009


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Sat Oct 31 22:47:53 2009 +0100| [018a1aca3167c06f41be34ef10cbbabade1f8d54] | committer: Rafaël Carré 

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=018a1aca3167c06f41be34ef10cbbabade1f8d54
---

 modules/misc/xdg-screensaver.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/misc/xdg-screensaver.c b/modules/misc/xdg-screensaver.c
index 84cfb7d..670d26c 100644
--- a/modules/misc/xdg-screensaver.c
+++ b/modules/misc/xdg-screensaver.c
@@ -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);




More information about the vlc-devel mailing list