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
This commit is contained in:
Enji Cooper 2015-12-08 22:47:54 +00:00
parent 021eaf7996
commit 692a3987f2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=292004
2 changed files with 6 additions and 0 deletions

View File

@ -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>

View File

@ -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>