From d39faf7f3d37f471c9b3bc587c1ebbe207f94d6b Mon Sep 17 00:00:00 2001 From: C Stout Date: Tue, 4 Jun 2024 11:35:59 -0700 Subject: util: u_dl: add Fuchsia support Reviewed-by: Gurchetan Singh Reviewed-by: Eric Engestrom Acked-by: Rob Clark Part-of: --- src/util/u_dl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/util') diff --git a/src/util/u_dl.c b/src/util/u_dl.c index 27d7b366160..46765056e65 100644 --- a/src/util/u_dl.c +++ b/src/util/u_dl.c @@ -29,7 +29,7 @@ #include "detect_os.h" -#if DETECT_OS_POSIX +#if DETECT_OS_POSIX_LITE #include #endif #if DETECT_OS_WINDOWS @@ -43,7 +43,7 @@ struct util_dl_library * util_dl_open(const char *filename) { -#if DETECT_OS_POSIX +#if DETECT_OS_POSIX_LITE return (struct util_dl_library *)dlopen(filename, RTLD_LAZY | RTLD_LOCAL); #elif DETECT_OS_WINDOWS return (struct util_dl_library *)LoadLibraryA(filename); @@ -57,7 +57,7 @@ util_dl_proc util_dl_get_proc_address(struct util_dl_library *library, const char *procname) { -#if DETECT_OS_POSIX +#if DETECT_OS_POSIX_LITE return (util_dl_proc) pointer_to_func(dlsym((void *)library, procname)); #elif DETECT_OS_WINDOWS return (util_dl_proc)GetProcAddress((HMODULE)library, procname); @@ -70,7 +70,7 @@ util_dl_get_proc_address(struct util_dl_library *library, void util_dl_close(struct util_dl_library *library) { -#if DETECT_OS_POSIX +#if DETECT_OS_POSIX_LITE dlclose((void *)library); #elif DETECT_OS_WINDOWS FreeLibrary((HMODULE)library); @@ -83,7 +83,7 @@ util_dl_close(struct util_dl_library *library) const char * util_dl_error(void) { -#if DETECT_OS_POSIX +#if DETECT_OS_POSIX_LITE return dlerror(); #elif DETECT_OS_WINDOWS return "unknown error"; -- cgit v1.2.3