Skip to content

Commit

Permalink
diskutil: include limits.h for PATH_MAX
Browse files Browse the repository at this point in the history
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: #1344
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
axboe committed Feb 16, 2022
1 parent 4a6f4ee commit 6a16e9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions diskutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#define FIO_DISKUTIL_H
#define FIO_DU_NAME_SZ 64

#include <limits.h>

#include "helper_thread.h"
#include "fio_sem.h"

Expand Down

0 comments on commit 6a16e9e

Please sign in to comment.