diff options
author | Patrick Steinhardt <ps@pks.im> | 2019-02-27 12:00:16 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2019-02-27 12:12:38 -0500 |
commit | dce8f980e25cf625d1bce2ef6f499b3a2664f2ce (patch) | |
tree | f143c5d381ba4c58fe057e7f4bcfb764099224a4 /support/misc | |
parent | 4f91877bb313a35ade44d9dde1fd219035ba1fd9 (diff) | |
download | nfs-utils-dce8f980e25cf625d1bce2ef6f499b3a2664f2ce.tar.gz |
file: fix missing include for PATH_MAX constant
While making use of the PATH_MAX constant, "file.c" does not include the
"limits.h" header. While it is being transitively included via other
headers on most platforms, it is not on e.g. musl-based systems.
Add the include to fix compilation.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/misc')
-rw-r--r-- | support/misc/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/support/misc/file.c b/support/misc/file.c index 4065376..e7c3819 100644 --- a/support/misc/file.c +++ b/support/misc/file.c @@ -27,6 +27,7 @@ #include <dirent.h> #include <stdlib.h> #include <stdbool.h> +#include <limits.h> #include "xlog.h" #include "misc.h" |