From 94ada984aeaa696d6a0ba1ee1c33786b4a4350fe Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sun, 20 Feb 2005 21:59:08 +0000 Subject: [PATCH] Only use dlclose if DL is present/supported. --- src/yaz-proxy-config.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/yaz-proxy-config.cpp b/src/yaz-proxy-config.cpp index babbd7c..951f1aa 100644 --- a/src/yaz-proxy-config.cpp +++ b/src/yaz-proxy-config.cpp @@ -1,4 +1,4 @@ -/* $Id: yaz-proxy-config.cpp,v 1.15 2005-02-11 15:19:08 adam Exp $ +/* $Id: yaz-proxy-config.cpp,v 1.16 2005-02-20 21:59:08 adam Exp $ Copyright (c) 1998-2005, Index Data. This file is part of the yaz-proxy. @@ -68,7 +68,9 @@ Yaz_ProxyModule::~Yaz_ProxyModule() if (int0->destroy) (*int0->destroy)(m_user_handle); } +#if HAVE_DLFCN_H dlclose(m_dl_handle); +#endif } int Yaz_ProxyModule::authenticate(const char *user, const char *group, -- 1.7.10.4