Older versions of POSIX had SIZE_MAX in limits.h but C99 standardized
it in stdint.h.  We should be including stdint.h to get SIZE_MAX
for portability's sake.

 - todd

Index: lib/libc/gen/glob.c
===================================================================
RCS file: /cvs/src/lib/libc/gen/glob.c,v
retrieving revision 1.41
diff -u -p -r1.41 glob.c
--- lib/libc/gen/glob.c 8 Oct 2014 05:35:27 -0000       1.41
+++ lib/libc/gen/glob.c 4 Feb 2015 18:16:01 -0000
@@ -64,6 +64,7 @@
 #include <glob.h>
 #include <limits.h>
 #include <pwd.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
Index: lib/libc/gen/scandir.c
===================================================================
RCS file: /cvs/src/lib/libc/gen/scandir.c,v
retrieving revision 1.18
diff -u -p -r1.18 scandir.c
--- lib/libc/gen/scandir.c      16 Jan 2015 16:48:51 -0000      1.18
+++ lib/libc/gen/scandir.c      4 Feb 2015 17:44:29 -0000
@@ -39,7 +39,7 @@
 #include <sys/stat.h>
 #include <dirent.h>
 #include <errno.h>
-#include <limits.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include "telldir.h"
Index: lib/libc/locale/multibyte_citrus.c
===================================================================
RCS file: /cvs/src/lib/libc/locale/multibyte_citrus.c,v
retrieving revision 1.4
diff -u -p -r1.4 multibyte_citrus.c
--- lib/libc/locale/multibyte_citrus.c  5 Dec 2012 23:20:00 -0000       1.4
+++ lib/libc/locale/multibyte_citrus.c  4 Feb 2015 17:44:52 -0000
@@ -29,7 +29,7 @@
 
 #include <sys/types.h>
 #include <errno.h>
-#include <limits.h>
+#include <stdint.h>
 #include <wchar.h>
 
 #include "citrus_ctype.h"
Index: lib/libc/stdio/open_memstream.c
===================================================================
RCS file: /cvs/src/lib/libc/stdio/open_memstream.c,v
retrieving revision 1.4
diff -u -p -r1.4 open_memstream.c
--- lib/libc/stdio/open_memstream.c     16 Jan 2015 16:48:51 -0000      1.4
+++ lib/libc/stdio/open_memstream.c     4 Feb 2015 18:15:10 -0000
@@ -18,7 +18,7 @@
 
 #include <errno.h>
 #include <fcntl.h>
-#include <limits.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
Index: lib/libc/stdio/open_wmemstream.c
===================================================================
RCS file: /cvs/src/lib/libc/stdio/open_wmemstream.c,v
retrieving revision 1.5
diff -u -p -r1.5 open_wmemstream.c
--- lib/libc/stdio/open_wmemstream.c    16 Jan 2015 16:48:51 -0000      1.5
+++ lib/libc/stdio/open_wmemstream.c    4 Feb 2015 17:45:59 -0000
@@ -18,8 +18,8 @@
 
 #include <errno.h>
 #include <fcntl.h>
-#include <limits.h>
 #include <stdio.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include <wchar.h>
Index: lib/libevent/buffer.c
===================================================================
RCS file: /cvs/src/lib/libevent/buffer.c,v
retrieving revision 1.28
diff -u -p -r1.28 buffer.c
--- lib/libevent/buffer.c       5 Jan 2015 23:14:36 -0000       1.28
+++ lib/libevent/buffer.c       4 Feb 2015 17:46:25 -0000
@@ -33,8 +33,8 @@
 
 #include <assert.h>
 #include <errno.h>
-#include <limits.h>
 #include <stdio.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include <stdarg.h>
Index: lib/libutil/pkcs5_pbkdf2.c
===================================================================
RCS file: /cvs/src/lib/libutil/pkcs5_pbkdf2.c,v
retrieving revision 1.8
diff -u -p -r1.8 pkcs5_pbkdf2.c
--- lib/libutil/pkcs5_pbkdf2.c  8 Jan 2015 01:28:56 -0000       1.8
+++ lib/libutil/pkcs5_pbkdf2.c  4 Feb 2015 17:46:57 -0000
@@ -19,7 +19,7 @@
 #include <sys/types.h>
 
 #include <string.h>
-#include <limits.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <util.h>
 
Index: usr.bin/diff/diffreg.c
===================================================================
RCS file: /cvs/src/usr.bin/diff/diffreg.c,v
retrieving revision 1.84
diff -u -p -r1.84 diffreg.c
--- usr.bin/diff/diffreg.c      16 Jan 2015 06:40:07 -0000      1.84
+++ usr.bin/diff/diffreg.c      4 Feb 2015 17:47:47 -0000
@@ -72,6 +72,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <stddef.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
Index: usr.bin/diff/xmalloc.c
===================================================================
RCS file: /cvs/src/usr.bin/diff/xmalloc.c,v
retrieving revision 1.4
diff -u -p -r1.4 xmalloc.c
--- usr.bin/diff/xmalloc.c      19 Aug 2013 20:21:15 -0000      1.4
+++ usr.bin/diff/xmalloc.c      4 Feb 2015 17:48:05 -0000
@@ -14,8 +14,8 @@
  */
 
 #include <err.h>
-#include <limits.h>
 #include <stdarg.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
Index: usr.bin/cvs/buf.c
===================================================================
RCS file: /cvs/src/usr.bin/cvs/buf.c,v
retrieving revision 1.81
diff -u -p -r1.81 buf.c
--- usr.bin/cvs/buf.c   1 Dec 2014 21:58:46 -0000       1.81
+++ usr.bin/cvs/buf.c   4 Feb 2015 17:49:42 -0000
@@ -29,6 +29,7 @@
 
 #include <errno.h>
 #include <fcntl.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
Index: usr.bin/cvs/file.c
===================================================================
RCS file: /cvs/src/usr.bin/cvs/file.c,v
retrieving revision 1.264
diff -u -p -r1.264 file.c
--- usr.bin/cvs/file.c  16 Jan 2015 06:40:07 -0000      1.264
+++ usr.bin/cvs/file.c  4 Feb 2015 17:50:32 -0000
@@ -35,6 +35,7 @@
 #include <fcntl.h>
 #include <fnmatch.h>
 #include <libgen.h>
+#include <stdint.h>
 #include <string.h>
 #include <unistd.h>
 
Index: usr.bin/cvs/diff_internals.c
===================================================================
RCS file: /cvs/src/usr.bin/cvs/diff_internals.c,v
retrieving revision 1.36
diff -u -p -r1.36 diff_internals.c
--- usr.bin/cvs/diff_internals.c        16 Jan 2015 06:40:07 -0000      1.36
+++ usr.bin/cvs/diff_internals.c        4 Feb 2015 17:50:44 -0000
@@ -71,6 +71,7 @@
 #include <errno.h>
 #include <regex.h>
 #include <stddef.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <string.h>
 #include <time.h>
Index: usr.bin/cvs/update.c
===================================================================
RCS file: /cvs/src/usr.bin/cvs/update.c,v
retrieving revision 1.169
diff -u -p -r1.169 update.c
--- usr.bin/cvs/update.c        16 Jan 2015 06:40:07 -0000      1.169
+++ usr.bin/cvs/update.c        4 Feb 2015 17:50:58 -0000
@@ -20,6 +20,7 @@
 #include <dirent.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <stdint.h>
 #include <string.h>
 #include <unistd.h>
 
Index: usr.bin/cvs/logmsg.c
===================================================================
RCS file: /cvs/src/usr.bin/cvs/logmsg.c,v
retrieving revision 1.55
diff -u -p -r1.55 logmsg.c
--- usr.bin/cvs/logmsg.c        16 Jan 2015 06:40:07 -0000      1.55
+++ usr.bin/cvs/logmsg.c        4 Feb 2015 17:51:06 -0000
@@ -24,6 +24,7 @@
 #include <libgen.h>
 #include <paths.h>
 #include <signal.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
Index: usr.bin/cvs/xmalloc.c
===================================================================
RCS file: /cvs/src/usr.bin/cvs/xmalloc.c,v
retrieving revision 1.10
diff -u -p -r1.10 xmalloc.c
--- usr.bin/cvs/xmalloc.c       1 Dec 2014 21:58:46 -0000       1.10
+++ usr.bin/cvs/xmalloc.c       4 Feb 2015 17:51:22 -0000
@@ -13,7 +13,7 @@
  * called by a name other than "ssh" or "Secure Shell".
  */
 
-#include <limits.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
Index: usr.bin/m4/eval.c
===================================================================
RCS file: /cvs/src/usr.bin/m4/eval.c,v
retrieving revision 1.73
diff -u -p -r1.73 eval.c
--- usr.bin/m4/eval.c   11 Jul 2014 21:04:17 -0000      1.73
+++ usr.bin/m4/eval.c   4 Feb 2015 17:51:49 -0000
@@ -45,6 +45,7 @@
 #include <limits.h>
 #include <unistd.h>
 #include <stdio.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <stddef.h>
 #include <string.h>
Index: usr.bin/patch/inp.c
===================================================================
RCS file: /cvs/src/usr.bin/patch/inp.c,v
retrieving revision 1.42
diff -u -p -r1.42 inp.c
--- usr.bin/patch/inp.c 9 Dec 2014 20:28:43 -0000       1.42
+++ usr.bin/patch/inp.c 4 Feb 2015 17:52:13 -0000
@@ -33,8 +33,8 @@
 
 #include <ctype.h>
 #include <libgen.h>
-#include <limits.h>
 #include <stddef.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
Index: usr.bin/patch/pch.c
===================================================================
RCS file: /cvs/src/usr.bin/patch/pch.c,v
retrieving revision 1.50
diff -u -p -r1.50 pch.c
--- usr.bin/patch/pch.c 14 Dec 2014 09:12:59 -0000      1.50
+++ usr.bin/patch/pch.c 4 Feb 2015 17:52:30 -0000
@@ -32,6 +32,7 @@
 #include <ctype.h>
 #include <libgen.h>
 #include <limits.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
Index: usr.bin/ssh/sshbuf-misc.c
===================================================================
RCS file: /cvs/src/usr.bin/ssh/sshbuf-misc.c,v
retrieving revision 1.2
diff -u -p -r1.2 sshbuf-misc.c
--- usr.bin/ssh/sshbuf-misc.c   24 Jun 2014 01:13:21 -0000      1.2
+++ usr.bin/ssh/sshbuf-misc.c   4 Feb 2015 17:43:08 -0000
@@ -20,6 +20,7 @@
 #include <netinet/in.h>
 #include <errno.h>
 #include <stdlib.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <limits.h>
 #include <string.h>
Index: usr.bin/rcs/xmalloc.c
===================================================================
RCS file: /cvs/src/usr.bin/rcs/xmalloc.c,v
retrieving revision 1.6
diff -u -p -r1.6 xmalloc.c
--- usr.bin/rcs/xmalloc.c       1 Dec 2014 21:58:46 -0000       1.6
+++ usr.bin/rcs/xmalloc.c       4 Feb 2015 17:53:30 -0000
@@ -14,8 +14,8 @@
  */
 
 #include <err.h>
-#include <limits.h>
 #include <stdarg.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
Index: usr.bin/rcs/buf.c
===================================================================
RCS file: /cvs/src/usr.bin/rcs/buf.c,v
retrieving revision 1.23
diff -u -p -r1.23 buf.c
--- usr.bin/rcs/buf.c   1 Dec 2014 21:58:46 -0000       1.23
+++ usr.bin/rcs/buf.c   4 Feb 2015 17:53:43 -0000
@@ -30,6 +30,7 @@
 #include <err.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
Index: usr.bin/sdiff/sdiff.c
===================================================================
RCS file: /cvs/src/usr.bin/sdiff/sdiff.c,v
retrieving revision 1.31
diff -u -p -r1.31 sdiff.c
--- usr.bin/sdiff/sdiff.c       16 Jan 2015 06:40:11 -0000      1.31
+++ usr.bin/sdiff/sdiff.c       4 Feb 2015 17:54:10 -0000
@@ -17,6 +17,7 @@
 #include <getopt.h>
 #include <limits.h>
 #include <paths.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

Reply via email to