diff options
Diffstat (limited to 'devel/libtool/patches/patch-as')
-rw-r--r-- | devel/libtool/patches/patch-as | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/devel/libtool/patches/patch-as b/devel/libtool/patches/patch-as new file mode 100644 index 00000000000..f2c5433e560 --- /dev/null +++ b/devel/libtool/patches/patch-as @@ -0,0 +1,33 @@ +$NetBSD: patch-as,v 1.1 2004/01/05 09:50:47 cube Exp $ + +--- libltdl/ltdl.c.orig 2001-04-25 06:05:03.000000000 +0200 ++++ libltdl/ltdl.c +@@ -1156,6 +1156,7 @@ presym_add_symlist (preloaded) + tmp = LT_DLMALLOC (lt_dlsymlists_t, 1); + if (tmp) + { ++ memset (tmp, 0, 1*sizeof(lt_dlsymlists_t)); + tmp->syms = preloaded; + tmp->next = preloaded_symbols; + preloaded_symbols = tmp; +@@ -2023,10 +2024,7 @@ lt_dlopen (filename) + return 0; + } + +- handle->info.ref_count = 0; +- handle->depcount = 0; +- handle->deplibs = 0; +- handle->caller_data = 0; ++ memset (handle, 0, 1*sizeof(struct lt_dlhandle_struct)); + newhandle = handle; + + /* lt_dlclose()ing yourself is very bad! Disallow it. */ +@@ -2266,7 +2264,7 @@ lt_dlopen (filename) + goto cleanup; + } + +- handle->info.ref_count = 0; ++ memset (handle, 0, 1*sizeof(struct lt_dlhandle_struct)); + if (load_deplibs (handle, deplibs) == 0) + { + newhandle = handle; |