diskutil: include limits.h for PATH_MAX
authorJens Axboe <axboe@kernel.dk>
Wed, 16 Feb 2022 00:11:06 +0000 (17:11 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 16 Feb 2022 00:17:30 +0000 (17:17 -0700)
commit6a16e9e9531a5f746c4e2fe43873de1db434b4fc
tree6e33fdefca873ad4c54f9d479f7958056503d69a
parent4a6f4ee73e84bc92123fc1667f9aa14b3f4034f7
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 <axboe@kernel.dk>
diskutil.h