lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev 284dev17 for Win32


From: Webmaster Jim
Subject: lynx-dev 284dev17 for Win32
Date: Sun, 11 Feb 2001 08:49:56 -0500

I've compiled an executable for Win32 with Borland C++; please see:

http://jim.spath.com/lynx_win32/index.html

There were a couple patches I needed to make for the build (sorry, the
first patch is backwards). I commented out the exp_rand_tempname because
the compile broke with my_srand and my_rand errors. LYMain.c needs a
change for mkdir() as Windows doesn't seem to have file permissions. The
LYOPtions change is there since the define for my_rand seems to only be
in the configure file. I'll need to look at the Borland manual to see
what rand functions exist.

===

BASH.EXE-2.02$ diff userdefs.h userdefs.hdf
353c353
< /* #define EXP_RAND_TEMPNAME 1 */
---
> #define EXP_RAND_TEMPNAME 1

===

BASH.EXE-2.02$ diff -u src/LYMain.cdf src/LYMain.c
--- src/LYMain.cdf      Thu Feb 08 21:50:00 2001
+++ src/LYMain.c        Sun Feb 11 07:48:04 2001
@@ -1129,7 +1129,11 @@
     LYAddPathSep(&lynx_temp_space);
 #endif /* VMS */
     if ((HTStat(lynx_temp_space, &dir_info) < 0
+#ifdef __WIN32__
+       && mkdir(lynx_temp_space) < 0)
+#else
        && mkdir(lynx_temp_space, 0700) < 0)
+#endif /* __WIN32__ */
      || !S_ISDIR(dir_info.st_mode)) {
        fprintf(stderr, "%s: %s\n",
                lynx_temp_space,

===

BASH.EXE-2.02$ diff -u src/LYOptions.cdf src/LYOptions.c
--- src/LYOptions.cdf   Thu Feb 08 21:50:00 2001
+++ src/LYOptions.c     Sun Feb 11 08:05:18 2001
@@ -3126,7 +3126,7 @@
 {
     FREE(secure_value);
     if ((secure_value = malloc(80)) != 0) {
-#if defined(RAND_MAX)
+#if defined(RAND_MAX) && defined (EXP_RAND_TEMPNAME)
        long key = my_rand();
 #else
        long key = (long)secure_value + (long)time(0);

==

  I tested the executable with minimal browsing, file downloading, and
FTP connections.

------
<http://www.cs.indiana.edu/picons/db/users/net/bcpl/jspath/face.xbm>
<http://www.altavista.com/cgi-bin/query?q=%22web+home+for+jim+spath%22>
Marvin the Paranoid Android says:
You realise this is going to be a complete waste of time don't you?

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]