From f10642794befcf7637c3176687d5e19c6138cb9d Mon Sep 17 00:00:00 2001 From: srittau Date: Fri, 8 Feb 2002 00:01:36 +0000 Subject: [PATCH] Use RTLD_LAZY on NetBSD. --- include/atalk/util.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/atalk/util.h b/include/atalk/util.h index 4384ad89..fb6bb45a 100644 --- a/include/atalk/util.h +++ b/include/atalk/util.h @@ -1,5 +1,5 @@ /* - * $Id: util.h,v 1.5.2.1 2001-12-31 20:05:20 srittau Exp $ + * $Id: util.h,v 1.5.2.2 2002-02-08 00:01:36 srittau Exp $ */ #ifndef _ATALK_UTIL_H @@ -39,7 +39,12 @@ extern void mod_close __P((void *)); #define RTLD_NOW 1 #endif /* ! RTLD_NOW */ +/* NetBSD doesn't like RTLD_NOW for dlopen (it fails). Use RTLD_LAZY. */ +#ifdef __NetBSD__ +#define mod_open(a) dlopen(a, RTLD_LAZY) +#else /* ! __NetBSD__ */ #define mod_open(a) dlopen(a, RTLD_NOW) +#endif /* __NetBSD__ */ #ifndef DLSYM_PREPEND_UNDERSCORE #define mod_symbol(a, b) dlsym(a, b) -- 2.39.2