From 84a0ecf4724cc57f30d8994cfce532c9de7702f0 Mon Sep 17 00:00:00 2001
From: Arthur de Jong <arthur@arthurdejong.org>
Date: Sun, 18 Jul 2010 11:40:55 +0000
Subject: compatibility improvement: also check for nss_common.h and see if
 enum nss_status exists

git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1166 ef36b2f9-881f-0410-afb5-c4e39611909c
---
 compat/nss_compat.h | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'compat')

diff --git a/compat/nss_compat.h b/compat/nss_compat.h
index b438b8f..238f77c 100644
--- a/compat/nss_compat.h
+++ b/compat/nss_compat.h
@@ -22,7 +22,12 @@
 #ifndef COMPAT__NSS_H
 #define COMPAT__NSS_H
 
+#ifdef HAVE_NSS_H
 #include <nss.h>
+#endif /* HAVE_NSS_H */
+#ifdef HAVE_NSS_COMMON_H
+#include <nss_common.h>
+#endif /* HAVE_NSS_COMMON_H */
 #ifdef HAVE_ALIASES_H
 #include <aliases.h>
 #endif
-- 
cgit v1.2.3