Eitan Adler
2013-11-19 15:28:29 UTC
cmp(1) makes use of uintmax_t which is defined in stdint.h. On NetBSD
it appears that this definition is otherwise pulled in.
The same issue may exist in other files as well.
Index: regular.c
===================================================================
RCS file: /cvsroot/src/usr.bin/cmp/regular.c,v
retrieving revision 1.23
diff -u -r1.23 regular.c
--- regular.c 28 Nov 2011 10:10:10 -0000 1.23
+++ regular.c 19 Nov 2013 06:28:05 -0000
@@ -45,6 +45,7 @@
#include <err.h>
#include <limits.h>
#include <stdlib.h>
+#include <stdint.h>
#include <stdio.h>
#include "extern.h"
0001.cmp.diff (END)
it appears that this definition is otherwise pulled in.
The same issue may exist in other files as well.
Index: regular.c
===================================================================
RCS file: /cvsroot/src/usr.bin/cmp/regular.c,v
retrieving revision 1.23
diff -u -r1.23 regular.c
--- regular.c 28 Nov 2011 10:10:10 -0000 1.23
+++ regular.c 19 Nov 2013 06:28:05 -0000
@@ -45,6 +45,7 @@
#include <err.h>
#include <limits.h>
#include <stdlib.h>
+#include <stdint.h>
#include <stdio.h>
#include "extern.h"
0001.cmp.diff (END)
--
Eitan Adler
Eitan Adler