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 <axboe@kernel.dk>
#define FIO_DISKUTIL_H
#define FIO_DU_NAME_SZ 64
+#include <limits.h>
+
#include "helper_thread.h"
#include "fio_sem.h"