From c238be244b8eba4d22fe6dc93ba9797c53e47039 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 24 Sep 1994 22:15:56 +0000 Subject: [PATCH] [USE_DL_STUBS] (dlopen, dlsym, dlclose): New functions. --- src/sysdep.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/sysdep.c b/src/sysdep.c index 8e885d3c23a..fe31b599830 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -4860,3 +4860,30 @@ hft_reset () } #endif /* AIX */ + +#ifdef USE_DL_STUBS + +/* These are included on Sunos 4.1 when we do not use shared libraries. + X11 libraries may refer to these functions but (we hope) do not + actually call them. */ + +void * +dlopen () +{ + return 0; +} + +void * +dlsym () +{ + return 0; +} + +int +dlclose () +{ + return -1; +} + +#endif /* USE_DL_STUBS */ + -- 2.39.5