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) {