aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorKO Myung-Hun <komh78@gmail.com>2017-10-21 13:51:11 +0300
committerEli Zaretskii <eliz@gnu.org>2017-10-21 13:51:11 +0300
commit73a0bda71873bdc095f171d3d8bf322b974a010d (patch)
tree538a70649a8894df1acec5f1257f2dea801e1e21 /io.c
parent23e8672e421a46f13f9f7b577f6f9e8e5889dd75 (diff)
downloadegawk-73a0bda71873bdc095f171d3d8bf322b974a010d.tar.gz
egawk-73a0bda71873bdc095f171d3d8bf322b974a010d.tar.bz2
egawk-73a0bda71873bdc095f171d3d8bf322b974a010d.zip
Fix the OS/2 build.
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/io.c b/io.c
index 378b1156..7314d8e8 100644
--- a/io.c
+++ b/io.c
@@ -2913,6 +2913,12 @@ find_source(const char *src, struct stat *stb, int *errcode, int is_extlib)
*errcode = 0;
if (src == NULL || *src == '\0')
return NULL;
+#ifdef __EMX__
+ char os2_src[strlen(src) + 1];
+
+ if (is_extlib)
+ src = os2_fixdllname(os2_src, src, sizeof(os2_src));
+#endif /* __EMX__ */
path = do_find_source(src, stb, errcode, pi);
if (path == NULL && is_extlib) {