This is a compilation of Mosaic 2.1 with a few minor changes described
below.  Thanks to Gary Ritchie for a couple of fixes, Brian Hobbs <brian@piglet.ny.shl.com> for figuring out the temp file hack.  This binary
will run on NS3.2 under Co-Xist.  I am told that other configurations also work.
---
Hal.Varian@umich.edu    Hal Varian
voice: 313-764-2364     Dept of Economics
fax:   313-764-2364     Univ of Michigan
                        Ann Arbor, MI 48109-1220

You have to change 3 files: the top level Makefile, src/mo-www.c and libwww2/HTFile.c.  Here are the diffs.

=========================================top level Makefile diffs
Note: I have compiled in freeWAIS support.  Comment these lines out
if you don't want WAIS support.

diff Makefile ../Mosaic-2.1/Makefile.sun
17c17
< #CC = gcc
---
> CC = gcc
38c38
< sysconfigflags = -DNEXT -DMOTIF1_2
---
> sysconfigflags = 
41c41
< #syslibs = -lPW -lsun -lmalloc
---
> syslibs = -lPW -lsun -lmalloc
47c47
< syslibs = 
---
> syslibs =
68c68
<  xinc = -I/usr/include/X11 -I/NextDeveloper/Headers/bsd/sys
---
> # xinc = -I/usr/include/X11
81c81
<  xlibs = -L/usr/lib/X11 -lXm -lXmu -lXt -lX11
---
> # xlibs = -L/usr/lib/X11 -lXm -lXmu -lXt -lX11
113,119c113,119
< #dtmmachtype = next
< #dtmdirs = libdtm libnet
< #dtmlibs = ../libnet/libnet.a ../libdtm/libdtm.a
< #dtmflags = -DHAVE_DTM -I.. -I../libnet
< #hdfdir = /hdf/install/sun
< #hdflibs = $(hdfdir)/lib/libnetcdf.a $(hdfdir)/lib/libdf.a
< #hdfflags = -DHAVE_HDF -I$(hdfdir)/include
---
> dtmmachtype = sun
> dtmdirs = libdtm libnet
> dtmlibs = ../libnet/libnet.a ../libdtm/libdtm.a
> dtmflags = -DHAVE_DTM -I.. -I../libnet
> hdfdir = /hdf/install/sun
> hdflibs = $(hdfdir)/lib/libnetcdf.a $(hdfdir)/lib/libdf.a
> hdfflags = -DHAVE_HDF -I$(hdfdir)/include
137c137
< waisroot = /Users/hal/Programming/freeWAIS-0.202
---
> waisroot = /X11/marca/freeWAIS-0.1-sun
=================================================src/mo-www.c diffs
diff mo-www.c ../../Mosaic-2.1/src/mo-www.c
58,60d57
< /* HRV */
< int tmp_file_iteration = 0;
< 
692,694c689
< /*  char *cwd = getcwd (NULL, 128); */
< char blah[1024];   /* HRV change */
< char *cwd = getwd (blah);
---
>   char *cwd = getcwd (NULL, 128);
713c708
< /*  free (cwd); */  /* HRV */
---
>   free (cwd);
735a731,732
>   char *tmp = (char *)malloc (sizeof (char) * L_tmpnam);
>   tmpnam (tmp);
737,744d733
< /*  char *tmp = (char *)malloc (sizeof (char) * L_tmpnam);
<     tmpnam (tmp);
<     HRV change */
< 
<   char *tmp = (char *)malloc (sizeof (char) * MAXPATHLEN);
<   sprintf(tmp, "/tmp/Mosaic_tmp_file.%d", tmp_file_iteration); 
<   tmp_file_iteration++;
< 
788,789c777,778
< /* Grumble grumble...  HRV */
< #if defined(ultrix) || defined(VMS) || defined(M4310) || defined(vax)
---
> /* Grumble grumble... */
> #if defined(ultrix) || defined(VMS) || defined(NeXT) || defined(M4310) || defined(vax)
===================================================changes to HTFile.c
diff libwww2/HTFile.c ../Mosaic-2.1/libwww2/HTFile.c
40,45d39
< #define S_IRUSR 400
< #define S_IWUSR 200
< #define S_IXUSR 100
< #define S_IXGRP 010
< #define S_IXOTH 001

