components/gnome/gnome-shell/patches/02-proc-cmdline.patch
changeset 7206 23066e5fef27
child 7661 aff9737ef6ba
equal deleted inserted replaced
7205:27c5215213bf 7206:23066e5fef27
       
     1 Enable use of /proc/self/cmdline on Solaris as well as Linux, now that we have
       
     2 support for it via PSARC/2015/207, instead of falling through to no-op case in
       
     3 shell_global_reexec_self().
       
     4 
       
     5 Need to submit upstream.
       
     6 
       
     7 diff --git a/src/shell-global.c b/src/shell-global.c
       
     8 index 6dda352..a698f0e 100644
       
     9 --- a/src/shell-global.c
       
    10 +++ b/src/shell-global.c
       
    11 @@ -1244,7 +1244,7 @@ shell_global_reexec_self (ShellGlobal *global)
       
    12    GPtrArray *arr;
       
    13    gsize len;
       
    14  
       
    15 -#if defined __linux__
       
    16 +#if defined __linux__ || defined __sun
       
    17    char *buf;
       
    18    char *buf_p;
       
    19    char *buf_end;