svn commit: r292141 - stable/9/lib/libc/stdio

Garrett Cooper ngie at FreeBSD.org
Sun Dec 13 03:41:51 UTC 2015


Author: ngie
Date: Sun Dec 13 03:41:50 2015
New Revision: 292141
URL: https://svnweb.freebsd.org/changeset/base/292141

Log:
  MFstable/10 r292140:
  
  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

Modified:
  stable/9/lib/libc/stdio/open_memstream.c
  stable/9/lib/libc/stdio/open_wmemstream.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/lib/   (props changed)
  stable/9/lib/libc/   (props changed)

Modified: stable/9/lib/libc/stdio/open_memstream.c
==============================================================================
--- stable/9/lib/libc/stdio/open_memstream.c	Sun Dec 13 03:40:43 2015	(r292140)
+++ stable/9/lib/libc/stdio/open_memstream.c	Sun Dec 13 03:41:50 2015	(r292141)
@@ -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: stable/9/lib/libc/stdio/open_wmemstream.c
==============================================================================
--- stable/9/lib/libc/stdio/open_wmemstream.c	Sun Dec 13 03:40:43 2015	(r292140)
+++ stable/9/lib/libc/stdio/open_wmemstream.c	Sun Dec 13 03:41:50 2015	(r292141)
@@ -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>


More information about the svn-src-stable-9 mailing list