summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib-src/yow.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib-src/yow.c b/lib-src/yow.c
index cbcf9f4c84c..0f289a19358 100644
--- a/lib-src/yow.c
+++ b/lib-src/yow.c
@@ -18,6 +18,18 @@
#define YOW_FILE "yow.lines"
#endif
+#ifdef MSDOS
+#define rootrelativepath(rel) \
+({\
+ static char res[BUFSIZE], *p;\
+ strcpy (res, argv[0]);\
+ p = res + strlen (res);\
+ while (p != res && *p != '/' && *p != '\\' && *p != ':') p--;\
+ strcpy (p + 1, "../");\
+ strcpy (p + 4, rel);\
+ &res;})
+#endif
+
main (argc, argv)
int argc;
char *argv[];