From 3050795c98e983e6afc972946ca97abd5be058ea Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Sun, 22 Apr 2001 22:50:54 +0000 Subject: [PATCH] * ltdl.m4 (AC_CHECK_HEADERS): UW7 has sys/dl.h, so we must check for that here. * libltdl/ltdl.c (HAVE_SYS_DL_H): Include it if necessary for the dlopen loader. Reported by Matthew Schalit --- ChangeLog | 6 ++++++ libltdl/ltdl.c | 4 ++++ ltdl.m4 | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 791f87330..39d5d0c8e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2001-04-22 Gary V. Vaughan + * ltdl.m4 (AC_CHECK_HEADERS): UW7 has sys/dl.h, so we must + check for that here. + * libltdl/ltdl.c (HAVE_SYS_DL_H): Include it if necessary for + the dlopen loader. + Reported by Matthew Schalit + * libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Use pass_all for various releases of UnixWare and OpenServer that support it. Reported by Matthew Schalit diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 010c247dd..5a9ebc41e 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -530,6 +530,10 @@ rpl_realloc (ptr, size) # include #endif +#if HAVE_SYS_DL_H +# include +#endif + #ifdef RTLD_GLOBAL # define LT_GLOBAL RTLD_GLOBAL #else diff --git a/ltdl.m4 b/ltdl.m4 index 575ba6506..0cf219040 100644 --- a/ltdl.m4 +++ b/ltdl.m4 @@ -35,7 +35,7 @@ AC_REQUIRE([AC_C_INLINE])dnl AC_REQUIRE([AC_HEADER_STDC])dnl AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl -AC_CHECK_HEADERS(malloc.h memory.h stdlib.h stdio.h ctype.h dl.h dld.h) +AC_CHECK_HEADERS(malloc.h memory.h stdlib.h stdio.h ctype.h dl.h sys/dl.h dld.h) AC_CHECK_HEADERS(string.h strings.h, break) AC_CHECK_FUNCS(strchr index, break) AC_CHECK_FUNCS(strrchr rindex, break) -- 2.47.3