Index: make/mksh/dosys.cc
--- make/mksh/dosys.cc.orig	2007-03-07 01:12:07 +0100
+++ make/mksh/dosys.cc	2007-06-07 10:14:43 +0200
@@ -104,6 +104,8 @@
  * Static variables
  */
 
+extern char **environ;
+
 /*
  * File table of contents
  */
Index: make/src/main.cc
--- make/src/main.cc.orig	2007-03-07 01:14:43 +0100
+++ make/src/main.cc	2007-06-07 10:15:17 +0200
@@ -217,6 +217,7 @@
 const char	*progname;
 
 extern int	POSIX;
+extern char **environ;
 
 /*
  *	main(argc, argv)
Index: sccs/src/vc.c
--- sccs/src/vc.c.orig	2007-03-25 15:11:04 +0200
+++ sccs/src/vc.c	2007-06-07 10:13:06 +0200
@@ -38,6 +38,7 @@
 /*	from OpenSolaris "sccs:cmd/vc.c"	*/
 # include	<defines.h>
 # include	<locale.h>
+# include	<limits.h>
 
 
 static int	SYMSIZE;
