Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Dec 2015 03:40:44 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r292140 - stable/10/lib/libc/stdio
Message-ID:  <201512130340.tBD3eiET071631@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Sun Dec 13 03:40:43 2015
New Revision: 292140
URL: https://svnweb.freebsd.org/changeset/base/292140

Log:
  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/10/lib/libc/stdio/open_memstream.c
  stable/10/lib/libc/stdio/open_wmemstream.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/libc/stdio/open_memstream.c
==============================================================================
--- stable/10/lib/libc/stdio/open_memstream.c	Sun Dec 13 03:38:19 2015	(r292139)
+++ stable/10/lib/libc/stdio/open_memstream.c	Sun Dec 13 03:40:43 2015	(r292140)
@@ -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/10/lib/libc/stdio/open_wmemstream.c
==============================================================================
--- stable/10/lib/libc/stdio/open_wmemstream.c	Sun Dec 13 03:38:19 2015	(r292139)
+++ stable/10/lib/libc/stdio/open_wmemstream.c	Sun Dec 13 03:40:43 2015	(r292140)
@@ -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?201512130340.tBD3eiET071631>