components/desktop/polkit/patches/04-fdwalk.patch
changeset 6217 f2179bfee747
equal deleted inserted replaced
6216:ea79493f75f0 6217:f2179bfee747
       
     1 Solaris specific changes for compiling
       
     2 
       
     3 --- polkit-0.113/src/programs/pkexec.c~	2015-06-18 13:20:50.000000000 -0700
       
     4 +++ polkit-0.113/src/programs/pkexec.c	2015-10-03 16:56:07.991084261 -0700
       
     5 @@ -246,6 +246,13 @@
       
     6    return TRUE;
       
     7  }
       
     8  
       
     9 +/* Solaris already has a fdwalk() defined in <stdlib.h> so we need to avoid
       
    10 + * conflicting definitions.
       
    11 + */
       
    12 +#ifdef HAVE_SOLARIS
       
    13 +# define fdwalk pkfdwalk
       
    14 +#endif
       
    15 +
       
    16  static gboolean
       
    17  fdwalk (FdCallback callback,
       
    18          gpointer   user_data)