summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-02-23 23:48:57 +0100
committerArthur de Jong <arthur@arthurdejong.org>2013-02-23 23:48:57 +0100
commit3155cdfb523e2bcf310ad04cbb366c72d3cba131 (patch)
treea92b66709a62f43926b1ab79c841a24cdaa1058d
parent61a3fce57df6e3fed01506765a0401be7c04af0f (diff)
define and export an _nss_ldap_version symbol
-rw-r--r--nss/common.c7
-rw-r--r--nss/exports.freebsd3
-rw-r--r--nss/exports.glibc3
-rw-r--r--nss/exports.solaris3
4 files changed, 15 insertions, 1 deletions
diff --git a/nss/common.c b/nss/common.c
index e94fa92..dd6769a 100644
--- a/nss/common.c
+++ b/nss/common.c
@@ -1,7 +1,7 @@
/*
common.c - common definitions
- Copyright (C) 2010, 2012 Arthur de Jong
+ Copyright (C) 2010, 2012, 2013 Arthur de Jong
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -19,4 +19,9 @@
02110-1301 USA
*/
+#include "config.h"
+
int _nss_ldap_enablelookups = 1;
+
+/* version information about the NSS module */
+char *_nss_ldap_version[3] = { PACKAGE, VERSION, NULL };
diff --git a/nss/exports.freebsd b/nss/exports.freebsd
index b9cd773..765b8fe 100644
--- a/nss/exports.freebsd
+++ b/nss/exports.freebsd
@@ -6,6 +6,9 @@ EXPORTED {
# flag to enable or disable lookups
_nss_ldap_enablelookups;
+ # version information of NSS module
+ _nss_ldap_version;
+
# module init
nss_module_register;
diff --git a/nss/exports.glibc b/nss/exports.glibc
index 0ed5ea2..a22c256 100644
--- a/nss/exports.glibc
+++ b/nss/exports.glibc
@@ -6,6 +6,9 @@ EXPORTED {
# flag to enable or disable lookups
_nss_ldap_enablelookups;
+ # version information of NSS module
+ _nss_ldap_version;
+
# aliases - mail aliases
_nss_ldap_getaliasbyname_r;
_nss_ldap_setaliasent;
diff --git a/nss/exports.solaris b/nss/exports.solaris
index be90512..5874a45 100644
--- a/nss/exports.solaris
+++ b/nss/exports.solaris
@@ -6,6 +6,9 @@ nss_ldap.so.1 {
# flag to enable or disable lookups
_nss_ldap_enablelookups;
+ # version information of NSS module
+ _nss_ldap_version;
+
# published NSS service module constructors
_nss_ldap_ethers_constr;
_nss_ldap_group_constr;