summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/lib/libwrap/Makefile.com2
-rw-r--r--usr/src/lib/libwrap/libvars.c22
-rw-r--r--usr/src/lib/libwrap/mapfile5
3 files changed, 26 insertions, 3 deletions
diff --git a/usr/src/lib/libwrap/Makefile.com b/usr/src/lib/libwrap/Makefile.com
index 9187bc24bc..aeafc46ffe 100644
--- a/usr/src/lib/libwrap/Makefile.com
+++ b/usr/src/lib/libwrap/Makefile.com
@@ -31,7 +31,7 @@ VERS = $(MAJOR)$(MINOR)
OBJECTS = hosts_access.o options.o shell_cmd.o rfc931.o eval.o \
hosts_ctl.o refuse.o percent_x.o clean_exit.o \
fromhost.o fix_options.o socket.o tli.o workarounds.o \
- update.o misc.o diag.o percent_m.o
+ update.o misc.o diag.o percent_m.o libvars.o
include ../../Makefile.lib
diff --git a/usr/src/lib/libwrap/libvars.c b/usr/src/lib/libwrap/libvars.c
new file mode 100644
index 0000000000..fa7a8656c0
--- /dev/null
+++ b/usr/src/lib/libwrap/libvars.c
@@ -0,0 +1,22 @@
+/*
+ * This file and its contents are supplied under the terms of the
+ * Common Development and Distribution License ("CDDL"), version 1.0.
+ * You may only use this file in accordance with the terms of version
+ * 1.0 of the CDDL.
+ *
+ * A full copy of the text of the CDDL should have accompanied this
+ * source. A copy of the CDDL is also available via the Internet at
+ * http://www.illumos.org/license/CDDL.
+ */
+
+/*
+ * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
+ */
+
+/*
+ * Add data storage for two variables which should be defined by consumers
+ * of libwrap to fix GNU configure's libwrap test.
+ */
+
+int allow_severity;
+int deny_severity;
diff --git a/usr/src/lib/libwrap/mapfile b/usr/src/lib/libwrap/mapfile
index e02d7e8c9e..a6ccfe109b 100644
--- a/usr/src/lib/libwrap/mapfile
+++ b/usr/src/lib/libwrap/mapfile
@@ -1,5 +1,6 @@
#
# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
#
#
@@ -25,6 +26,6 @@ $mapfile_version 2
SYMBOL_SCOPE {
global:
- allow_severity { FLAGS = extern };
- deny_severity { FLAGS = extern };
+ allow_severity { FLAGS = NODIRECT; };
+ deny_severity { FLAGS = NODIRECT; };
};