diff -ru make-3.82.90.orig/config.h.W32.template make-3.82.90/config.h.W32.template
--- make-3.82.90.orig/config.h.W32.template	2011-12-02 20:35:49.000000000 +0400
+++ make-3.82.90/config.h.W32.template	2013-08-09 10:30:43.106719100 +0500
@@ -136,7 +137,7 @@
 /* #undef HAVE_ICONV */
 
 /* Define to 1 if you have the <inttypes.h> header file. */
-/*#define HAVE_INTTYPES_H 1*/
+#define HAVE_INTTYPES_H 1
 
 /* Define to 1 if you have the `dgc' library (-ldgc). */
 /* #undef HAVE_LIBDGC */
@@ -448,14 +449,14 @@
 #define uid_t int
 
 /* Define uintmax_t if not defined in <stdint.h> or <inttypes.h>. */
-#define uintmax_t unsigned long
+/*#define uintmax_t unsigned long*/
 
 /* Define as `fork' if `vfork' does not work. */
 /*#define vfork fork*/
 
 /* Define to `unsigned long' or `unsigned long long'
    if <inttypes.h> doesn't define.  */
-#define uintmax_t unsigned long
+/*#define uintmax_t unsigned long*/
 
 /* Define if you support file names longer than 14 characters.  */
 #define HAVE_LONG_FILE_NAMES 1
diff -ru make-3.82.90.orig/tests/test_driver.pl make-3.82.90/tests/test_driver.pl
--- make-3.82.90.orig/tests/test_driver.pl	2010-07-28 10:39:50.000000000 +0500
+++ make-3.82.90/tests/test_driver.pl	2013-08-08 11:43:54.903400300 +0500
@@ -92,7 +92,7 @@
            # Purify things
            'PURIFYOPTIONS',
            # Windows NT-specific stuff
-           'Path', 'SystemRoot',
+           'Path', 'SystemRoot', 'TEMP', 'TMP',
            # DJGPP-specific stuff
            'DJDIR', 'DJGPP', 'SHELL', 'COMSPEC', 'HOSTNAME', 'LFN',
            'FNCASE', '387', 'EMU387', 'GROUP'
