Date: Tue, 8 Dec 2015 22:47:54 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r292004 - head/lib/libc/stdio Message-ID: <201512082247.tB8MlsCA089831@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Tue Dec 8 22:47:54 2015 New Revision: 292004 URL: https://svnweb.freebsd.org/changeset/base/292004 Log: 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 Modified: head/lib/libc/stdio/open_memstream.c head/lib/libc/stdio/open_wmemstream.c Modified: head/lib/libc/stdio/open_memstream.c ============================================================================== --- head/lib/libc/stdio/open_memstream.c Tue Dec 8 21:21:48 2015 (r292003) +++ head/lib/libc/stdio/open_memstream.c Tue Dec 8 22:47:54 2015 (r292004) @@ -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> Modified: head/lib/libc/stdio/open_wmemstream.c ============================================================================== --- head/lib/libc/stdio/open_wmemstream.c Tue Dec 8 21:21:48 2015 (r292003) +++ head/lib/libc/stdio/open_wmemstream.c Tue Dec 8 22:47:54 2015 (r292004) @@ -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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512082247.tB8MlsCA089831>