From 6a16e9e9531a5f746c4e2fe43873de1db434b4fc Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 15 Feb 2022 17:11:06 -0700 Subject: [PATCH] diskutil: include limits.h for PATH_MAX On OmniOS, compilation fails because of a missing PATH_MAX definition: $ gmake CC cconv.o In file included from stat.h:6:0, from thread_options.h:7, from cconv.c:4: diskutil.h:52:12: error: 'PATH_MAX' undeclared here (not in a function); did you mean 'INT8_MAX'? char path[PATH_MAX]; ^~~~~~~~ INT8_MAX gmake: *** [Makefile:505: cconv.o] Error 1 Add limits.h to fix that. Link: https://github.com/axboe/fio/issues/1344 Signed-off-by: Jens Axboe --- diskutil.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/diskutil.h b/diskutil.h index 83bcbf89..7d7ef802 100644 --- a/diskutil.h +++ b/diskutil.h @@ -2,6 +2,8 @@ #define FIO_DISKUTIL_H #define FIO_DU_NAME_SZ 64 +#include + #include "helper_thread.h" #include "fio_sem.h" -- 2.25.1