Mail Archives: djgpp/1998/06/02/10:45:29
I don't think I've seen anyone mention anything about this before. After
downloading and building js[1], a free JavaScript interpreter, on my Linux
box I decided to have a go and see if it would build using DJGPP.
After setting CC=gcc the configure script ran fine using bash and, after
making these changes:
----------------------------------------------------------------------------
--- js-0.1.1\src\b_file.c Thu May 28 14:52:50 1998
+++ djgpp-js-0.1.1\src\b_file.c Tue Jun 2 15:08:18 1998
@@ -168,10 +168,11 @@
goto argument_error;
path = js_string_to_c_string (&args[1]);
-
+#ifndef DJGPP
if (method == ctx->s_lstat)
result = lstat (path, &stat_st);
else
+#endif
result = stat (path, &stat_st);
js_free (path);
@@ -245,8 +246,10 @@
node++;
/* blocks */
+#ifndef DJGPP
node->type = JS_INTEGER;
node->u.vinteger = stat_st.st_blocks;
+#endif
}
}
/* ********************************************************************** */
----------------------------------------------------------------------------
to src/b_file.c it compiled fine and all tests ran without a
problem. Apologies if this is old news, I though I'd pass on my experience
in case this was of interest to anyone else.
------
[1] http://www.ngs.fi/js/
--
Take a look in Hagbard's World: | w3ng - The WWW Norton Guide reader.
http://www.acemake.com/hagbard/ | ng2html - The NG to HTML converter.
http://www.hagbard.demon.co.uk/ | eg - Norton Guide reader for Linux.
Free software, including........| dgscan - DGROUP scanner for Clipper.
- Raw text -