From c6ac66e3f01ebe9355902478ae2fb525e26d47ca Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 9 Feb 2018 01:13:11 +0000 Subject: [PATCH] fixed header includsion in main.c --- lib/main.c | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/lib/main.c b/lib/main.c index 70f06af..515f26e 100644 --- a/lib/main.c +++ b/lib/main.c @@ -38,7 +38,7 @@ #if defined(_WIN32) # include # include -# if defined(STIX_HAVE_CFG_H) +# if defined(HCL_HAVE_CFG_H) && defined(HCL_ENABLE_LIBLTDL) # include # define USE_LTDL # endif @@ -53,11 +53,26 @@ #elif defined(macintosh) # include #else -# include -# include -# include -# include -# define USE_LTDL + +# if defined(HCL_ENABLE_LIBLTDL) +# include +# define USE_LTDL +# define sys_dl_error() lt_dlerror() +# define sys_dl_open(x) lt_dlopen(x) +# define sys_dl_openext(x) lt_dlopenext(x) +# define sys_dl_close(x) lt_dlclose(x) +# define sys_dl_sym(x,n) lt_dlsym(x,n) +# elif defined(HAVE_DLFCN_H) +# include +# define USE_DLFCN +# define sys_dl_error() dlerror() +# define sys_dl_open(x) dlopen(x,RTLD_NOW) +# define sys_dl_openext(x) dlopen(x,RTLD_NOW) +# define sys_dl_close(x) dlclose(x) +# define sys_dl_sym(x,n) dlsym(x,n) +# else +# error UNSUPPORTED DYNAMIC LINKER +# endif # if defined(HAVE_TIME_H) # include @@ -68,6 +83,11 @@ # if defined(HAVE_SIGNAL_H) # include # endif + +# include +# include +# include + #endif