From 63bf9bb2f7af550b747b0a55451f532aed7a0966 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Mon, 18 Jun 2018 22:56:06 +0200 Subject: [PATCH] mescc: Support Tinycc 0.9.27: Drop dlclose, dlopen. * lib/libc+tcc.c (dlclose, dlopen): Remove. * include/dlfcn.h (RTLD_DEFAULT): Add. --- include/dlfcn.h | 2 +- lib/libc+tcc.c | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/include/dlfcn.h b/include/dlfcn.h index 1774380f..c758b062 100644 --- a/include/dlfcn.h +++ b/include/dlfcn.h @@ -34,6 +34,7 @@ #define RTLD_GLOBAL 0x00100 #define RTLD_LOCAL 0 #define RTLD_NODELETE 0x01000 +#define RTLD_DEFAULT 0 void *dlopen (char const *filename, int flags); int dlclose (void *handle); @@ -41,4 +42,3 @@ int dlclose (void *handle); #endif // ! WITH_GLIBC #endif // __MES_DLFCN_H - diff --git a/lib/libc+tcc.c b/lib/libc+tcc.c index d1133d40..fc39c1a5 100644 --- a/lib/libc+tcc.c +++ b/lib/libc+tcc.c @@ -47,18 +47,6 @@ #endif // !__MESC__ -int -dlclose (void *handle) -{ - return 0; -} - -void * -dlopen (char const *filename, int flags) -{ - return 0; -} - char * search_path (char const *file_name) {