diff -c orig/lib.c new/lib.c
*** orig/lib.c	Sat Aug  9 11:35:00 1997
--- new/lib.c	Sat Oct 11 21:31:44 1997
***************
*** 605,611 ****
  
  double errcheck(double x, char *s)
  {
! 	extern int errno;
  
  	if (errno == EDOM) {
  		errno = 0;
--- 605,611 ----
  
  double errcheck(double x, char *s)
  {
!   /* extern int errno; */
  
  	if (errno == EDOM) {
  		errno = 0;
diff -c orig/main.c new/main.c
*** orig/main.c	Thu Aug 21 08:00:14 1997
--- new/main.c	Sat Oct 11 21:26:44 1997
***************
*** 33,39 ****
--- 33,41 ----
  #include "awk.h"
  #include "ytab.h"
  
+ #ifndef _MSC_VER
  extern	char	**environ;
+ #endif
  extern	int	nfields;
  
  int	dbg	= 0;
diff -c orig/run.c new/run.c
*** orig/run.c	Thu Aug 21 08:29:04 1997
--- new/run.c	Sat Oct 11 21:29:08 1997
***************
*** 33,38 ****
--- 33,44 ----
  #include "awk.h"
  #include "ytab.h"
  
+ #ifdef _MSC_VER
+ #include "popen.h"
+ #define popen os_popen
+ #define pclose os_pclose
+ #endif
+ 
  #define tempfree(x)	if (istemp(x)) tfree(x); else
  
  /*
