From a9638453049babcd185f730126f50d4598dc7b16 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Thu, 16 Jan 2020 14:14:55 +0000 Subject: [PATCH] Allow bootstrapping mkimg on macOS/Linux On these systems the (u)int64_t typedefs will not be implicitly defined by the previous includes, so include in the header that uses uint64_t. Reviewed By: brooks Differential Revision: https://reviews.freebsd.org/D23202 --- usr.bin/mkimg/image.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.bin/mkimg/image.h b/usr.bin/mkimg/image.h index 0405c5b37c27..25823fef2030 100644 --- a/usr.bin/mkimg/image.h +++ b/usr.bin/mkimg/image.h @@ -29,6 +29,8 @@ #ifndef _MKIMG_IMAGE_H_ #define _MKIMG_IMAGE_H_ +#include + typedef int64_t lba_t; int image_copyin(lba_t blk, int fd, uint64_t *sizep);