From 0ae838645225acf41ea8568ba66d9a9328609b61 Mon Sep 17 00:00:00 2001 From: ngie Date: Tue, 8 Dec 2015 22:47:54 +0000 Subject: [PATCH] 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 --- lib/libc/stdio/open_memstream.c | 3 +++ lib/libc/stdio/open_wmemstream.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib/libc/stdio/open_memstream.c b/lib/libc/stdio/open_memstream.c index baa71e4a72ef..f3d1ee56cce6 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 #include +#ifdef DEBUG +#include +#endif #include #include #include diff --git a/lib/libc/stdio/open_wmemstream.c b/lib/libc/stdio/open_wmemstream.c index 299e3d87940f..458553183ac2 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 #include +#ifdef DEBUG +#include +#endif #include #include #include