home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / fontutils-0.6 / lib / dlsym.c < prev    next >
Encoding:
Text File  |  1991-07-31  |  677 b   |  29 lines

  1. /*
  2.  * Stub interface to dynamic linker routines
  3.  * that SunOS uses but didn't ship with 4.1.
  4.  *
  5.  * The C library routine wcstombs in SunOS 4.1 tries to dynamically
  6.  * load some routines using the dlsym interface, described in dlsym(3x).
  7.  * Unfortunately SunOS 4.1 does not include the necessary library, libdl.
  8.  *
  9.  * The R5 Xlib uses wcstombs.  If you link dynamcally, your program can
  10.  * run even with the unresolved reference to dlsym.  However, if you
  11.  * link statically, you will encounter this bug.  One workaround
  12.  * is to include these stub routines when you link.
  13.  */
  14.  
  15. void *dlopen()
  16. {
  17.     return 0;
  18. }
  19.  
  20. void *dlsym()
  21. {
  22.     return 0;
  23. }
  24.  
  25. int dlclose()
  26. {
  27.     return -1;
  28. }
  29.