projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
175b76c
)
Check for dlfcn.h presence
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 5 Jan 2005 00:10:19 +0000
(
00:10
+0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 5 Jan 2005 00:10:19 +0000
(
00:10
+0000)
recctrl/recctrl.c
patch
|
blob
|
history
diff --git
a/recctrl/recctrl.c
b/recctrl/recctrl.c
index
a19874f
..
6678a00
100644
(file)
--- a/
recctrl/recctrl.c
+++ b/
recctrl/recctrl.c
@@
-1,4
+1,4
@@
-/* $Id: recctrl.c,v 1.14 2004-11-29 21:55:28 adam Exp $
+/* $Id: recctrl.c,v 1.15 2005-01-05 00:10:19 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
@@
-24,7
+24,9
@@
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
+#if HAVE_DLFCN_H
#include <dlfcn.h>
#include <dlfcn.h>
+#endif
#include <direntz.h>
#include <zebrautl.h>
#include <direntz.h>
#include <zebrautl.h>
@@
-101,6
+103,7
@@
RecTypeClass recTypeClass_create (Res res, NMEM nmem)
recTypeClass_add (&rts, idzebra_filter_safari, nmem, 0);
#endif
recTypeClass_add (&rts, idzebra_filter_safari, nmem, 0);
#endif
+#if HAVE_DLFCN_H
if (module_path)
{
DIR *dir = opendir(module_path);
if (module_path)
{
DIR *dir = opendir(module_path);
@@
-146,6
+149,7
@@
RecTypeClass recTypeClass_create (Res res, NMEM nmem)
closedir(dir);
}
}
closedir(dir);
}
}
+#endif
return rts;
}
return rts;
}
@@
-180,8
+184,10
@@
void recTypeClass_destroy(RecTypeClass rtc)
{
for (; rtc; rtc = rtc->next)
{
{
for (; rtc; rtc = rtc->next)
{
+#if HAVE_DLFCN_H
if (rtc->module_handle)
dlclose(rtc->module_handle);
if (rtc->module_handle)
dlclose(rtc->module_handle);
+#endif
}
}
}
}