diff options
author | KO Myung-Hun <komh78@gmail.com> | 2017-10-21 13:51:11 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2017-10-21 13:51:11 +0300 |
commit | 73a0bda71873bdc095f171d3d8bf322b974a010d (patch) | |
tree | 538a70649a8894df1acec5f1257f2dea801e1e21 /nonposix.h | |
parent | 23e8672e421a46f13f9f7b577f6f9e8e5889dd75 (diff) | |
download | egawk-73a0bda71873bdc095f171d3d8bf322b974a010d.tar.gz egawk-73a0bda71873bdc095f171d3d8bf322b974a010d.tar.bz2 egawk-73a0bda71873bdc095f171d3d8bf322b974a010d.zip |
Fix the OS/2 build.
Diffstat (limited to 'nonposix.h')
-rw-r--r-- | nonposix.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -75,3 +75,19 @@ int getppid(void); wint_t btowc (int c); wint_t putwc (wchar_t wc, FILE *stream); #endif + +#ifdef __EMX__ + +char *os2_fixdllname(char *dst, const char *src, size_t n); + +#ifdef __KLIBC__ +#include <dlfcn.h> + +#define dlopen(f, m) os2_dlopen(f, m) +void *os2_dlopen(const char *file, int mode); + +#define dlsym(h, n) os2_dlsym(h, n) +void *os2_dlsym(void *handle, const char *name); +#endif /* __KLIBC__ */ + +#endif /* __EMX__ */ |