diff -r 40edf1be1cd8 src/config.h.in
--- a/src/config.h.in	Tue May 18 20:34:20 2010 +0200
+++ b/src/config.h.in	Tue May 18 16:56:11 2010 -0400
@@ -216,6 +216,7 @@
 #undef HAVE_FCNTL_H
 #undef HAVE_FRAME_H
 #undef HAVE_ICONV_H
+#undef HAVE_INTTYPES_H
 #undef HAVE_LANGINFO_H
 #undef HAVE_LIBC_H
 #undef HAVE_LIBGEN_H
@@ -228,6 +229,7 @@
 #undef HAVE_PWD_H
 #undef HAVE_SETJMP_H
 #undef HAVE_SGTTY_H
+#undef HAVE_STDINT_H
 #undef HAVE_STRINGS_H
 #undef HAVE_STROPTS_H
 #undef HAVE_SYS_ACCESS_H
diff -r 40edf1be1cd8 src/configure.in
--- a/src/configure.in	Tue May 18 20:34:20 2010 +0200
+++ b/src/configure.in	Tue May 18 16:56:11 2010 -0400
@@ -2174,9 +2174,9 @@
 		AC_MSG_RESULT(no))
 fi
 
-AC_CHECK_HEADERS(stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
+AC_CHECK_HEADERS(stdarg.h stdint.h stdlib.h string.h sys/select.h sys/utsname.h \
 	termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
-	iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
+	iconv.h inttypes.h langinfo.h math.h unistd.h stropts.h errno.h \
 	sys/resource.h sys/systeminfo.h locale.h \
 	sys/stream.h termios.h libc.h sys/statfs.h \
 	poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
diff -r 40edf1be1cd8 src/vim.h
--- a/src/vim.h	Tue May 18 20:34:20 2010 +0200
+++ b/src/vim.h	Tue May 18 16:56:11 2010 -0400
@@ -470,6 +470,12 @@
 
 #include <assert.h>
 
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
 #ifdef HAVE_WCTYPE_H
 # include <wctype.h>
 #endif
