Log Message: Second attempt at: Fix build on systems which don't provide openat() such as NetBSD 6 https://bugzilla.gnome.org/show_bug.cgi?id=735974 after Joerg's failure report. Previous was tested on NetBSD 6 and 7. Not so this time.