pkexec.c uses get_current_dir_name when we have getcwd in POSIX specs; this causes polkit not to build on, eg, FreeBSD. Here is a patch to fix that.
Created attachment 223595 [details, diff] fix
sounds good.
applied & keyworded