summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2015-07-20 19:38:27 (GMT)
committerMiloslav Trmač <mitr@redhat.com>2015-07-20 19:39:06 (GMT)
commit14e5cae3f4be2e1c08f50c28ecb72faed048ad30 (patch)
treedad18a2ecbe9a570b47c8adf66100bd00b89aa00
parent074df27827fd773f1c76545cd08da568440ca41f (diff)
downloadpolkit-14e5cae3f4be2e1c08f50c28ecb72faed048ad30.tar.gz
polkit-14e5cae3f4be2e1c08f50c28ecb72faed048ad30.tar.xz
Consistently use HAVE_NETGROUP_H instead of HAVE_OPENBSD
Cleanup for https://bugs.freedesktop.org/show_bug.cgi?id=75187
-rw-r--r--src/polkitbackend/polkitbackendinteractiveauthority.c2
-rw-r--r--src/polkitbackend/polkitbackendjsauthority.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/polkitbackend/polkitbackendinteractiveauthority.c b/src/polkitbackend/polkitbackendinteractiveauthority.c
index 25f28a7..0be60c7 100644
--- a/src/polkitbackend/polkitbackendinteractiveauthority.c
+++ b/src/polkitbackend/polkitbackendinteractiveauthority.c
@@ -23,7 +23,7 @@
#include <errno.h>
#include <pwd.h>
#include <grp.h>
-#if defined HAVE_OPENBSD
+#ifdef HAVE_NETGROUP_H
#include <netgroup.h>
#else
#include <netdb.h>
diff --git a/src/polkitbackend/polkitbackendjsauthority.c b/src/polkitbackend/polkitbackendjsauthority.c
index 9f9005a..2112868 100644
--- a/src/polkitbackend/polkitbackendjsauthority.c
+++ b/src/polkitbackend/polkitbackendjsauthority.c
@@ -24,7 +24,7 @@
#include <errno.h>
#include <pwd.h>
#include <grp.h>
-#if defined HAVE_OPENBSD
+#ifdef HAVE_NETGROUP_H
#include <netgroup.h>
#else
#include <netdb.h>