diff options
author | ngie <ngie@FreeBSD.org> | 2015-12-13 03:40:43 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-12-13 03:40:43 +0000 |
commit | e640864a77bcd2ecd94e4566f6f297962d206dbb (patch) | |
tree | 32157c89f27f049dc99f0a82602da1f9b0b6eee1 /lib | |
parent | 4cb27004062757d9167158a0923ed0c1521467b1 (diff) | |
download | FreeBSD-src-e640864a77bcd2ecd94e4566f6f297962d206dbb.zip FreeBSD-src-e640864a77bcd2ecd94e4566f6f297962d206dbb.tar.gz |
MFC r292004:
Fix compilation when -DDEBUG is defined by adding inttypes.h #include
for intmax_t
Differential Revision: https://reviews.freebsd.org/D4434
Reported by: cppcheck
Reviewed by: jhb
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdio/open_memstream.c | 3 | ||||
-rw-r--r-- | lib/libc/stdio/open_wmemstream.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc/stdio/open_memstream.c b/lib/libc/stdio/open_memstream.c index baa71e4..f3d1ee5 100644 --- a/lib/libc/stdio/open_memstream.c +++ b/lib/libc/stdio/open_memstream.c @@ -31,6 +31,9 @@ __FBSDID("$FreeBSD$"); #include "namespace.h" #include <assert.h> #include <errno.h> +#ifdef DEBUG +#include <inttypes.h> +#endif #include <limits.h> #include <stdio.h> #include <stdlib.h> diff --git a/lib/libc/stdio/open_wmemstream.c b/lib/libc/stdio/open_wmemstream.c index 299e3d8..4585531 100644 --- a/lib/libc/stdio/open_wmemstream.c +++ b/lib/libc/stdio/open_wmemstream.c @@ -31,6 +31,9 @@ __FBSDID("$FreeBSD$"); #include "namespace.h" #include <assert.h> #include <errno.h> +#ifdef DEBUG +#include <inttypes.h> +#endif #include <limits.h> #include <stdio.h> #include <stdlib.h> |