$NetBSD: patch-ao,v 1.1 2009/01/20 10:08:17 sketch Exp $

--- src/polkit-dbus/polkit-read-auth-helper.c.orig	Tue Jan 20 09:52:20 2009
+++ src/polkit-dbus/polkit-read-auth-helper.c	Tue Jan 20 09:53:15 2009
@@ -175,7 +175,11 @@
                 goto out;
         }
 
+#ifdef HAVE_SOLARIS
+	dfd = dir->dd_fd;
+#else
         dfd = dirfd (dir);
+#endif
         if (dfd == -1) {
                 fprintf (stderr, "polkit-read-auth-helper: error calling dirfd(): %m\n");
                 goto out;
