These sources should compile without any problems.
They have been compiled successfully with the following compilers:

BCC 3.1  under DOS (makefile.dos)
BCC 4.02 under DOS (makefile.dos)

EMX 0.9b under DOS and OS/2 (gcc 2.7.2, makefile.emx)

gcc 2.7.2 under Linux, SunOS 4.1, Solaris 2.4 (makefile)
Sun CC under Solaris 2.4 (makefile)
Sun cc under Solaris 2.3 (makefile)
xlc under IBM AIX 3.2 (makefile)


The "access" function is declared "io.h" or "unistd.h", depending on your
system. Replace "unistd" in "lgrind.c" with "io" if necessary. If your
compiler issues only a warning for missing prototypes you can delete the
#include completely. 


The -d! option is tested and works well, but a self-modifying program can
still be a security hole in certain environments. If you want to disable
this feature you can compile lgrind.c with NO_PERM_D defined. (Either modi-
fy lgrind.c and insert a line like "#define NO_PERM_D" somewhere near the
other '#defines', or you can modify the makefile by commenting out the lines
after 'lgrind.o: ...' and uncommenting the lines after that.

