#include <errno.h>
#endif
-_DBUS_DEFINE_GLOBAL_LOCK (win_fds);
-_DBUS_DEFINE_GLOBAL_LOCK (sid_atom_cache);
-_DBUS_DEFINE_GLOBAL_LOCK (system_users);
-
#ifdef DBUS_WIN
#include <stdlib.h>
#elif (defined __APPLE__)
const char*
_dbus_getenv (const char *varname)
{
-#if defined(HAVE_SECURE_GETENV)
- return secure_getenv (varname);
-#elif defined(HAVE___SECURE_GETENV)
- return __secure_getenv (varname);
-#else
/* Don't respect any environment variables if the current process is
* setuid. This is the equivalent of glibc's __secure_getenv().
*/
if (_dbus_check_setuid ())
return NULL;
return getenv (varname);
-#endif
}
/**