diff options
author | ngie <ngie@FreeBSD.org> | 2015-12-08 22:47:54 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-12-08 22:47:54 +0000 |
commit | 0ae838645225acf41ea8568ba66d9a9328609b61 (patch) | |
tree | fdc6df64c05b73c2fae186ff27085b4e263ded54 /lib/libc/stdio/open_memstream.c | |
parent | ce99ff457034b7469b60219795e7060d07487217 (diff) | |
download | FreeBSD-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/libc/stdio/open_memstream.c')
-rw-r--r-- | lib/libc/stdio/open_memstream.c | 3 |
1 files changed, 3 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> |