summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-12-08 22:47:54 +0000
committerngie <ngie@FreeBSD.org>2015-12-08 22:47:54 +0000
commit0ae838645225acf41ea8568ba66d9a9328609b61 (patch)
treefdc6df64c05b73c2fae186ff27085b4e263ded54 /lib
parentce99ff457034b7469b60219795e7060d07487217 (diff)
downloadFreeBSD-src-0ae838645225acf41ea8568ba66d9a9328609b61.zip
FreeBSD-src-0ae838645225acf41ea8568ba66d9a9328609b61.tar.gz
Fix compilation when -DDEBUG is defined by adding inttypes.h #include
for intmax_t MFC after: 3 days 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.c3
-rw-r--r--lib/libc/stdio/open_wmemstream.c3
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>
OpenPOWER on IntegriCloud