diff options
author | Patrick Steinhardt <ps@pks.im> | 2019-09-05 07:54:50 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2019-09-05 08:05:26 -0400 |
commit | f99c532de679febb9d31d0ecb63ba2c0004eb538 (patch) | |
tree | c9102cda85e3d6375d21feb3bd1dd65497d3b132 /support | |
parent | 38364230aebedd0b6721eda75dff0a170e3ee4b0 (diff) | |
download | nfs-utils-f99c532de679febb9d31d0ecb63ba2c0004eb538.tar.gz |
nfsd_path: Include missing header for `struct stat`
The header "nfsd_path.h" uses `struct stat` in its function signatures,
but doesn't include the <sys/stat.h> header. This may cause compiler
warnings if a compilation unit includes "nfsd_path.h" while not
transitively including <sys/stat.h>.
Fix the potential warning by including <sys/stat.h> in the header.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support')
-rw-r--r-- | support/include/nfsd_path.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/support/include/nfsd_path.h b/support/include/nfsd_path.h index ca2570a9..b42416bb 100644 --- a/support/include/nfsd_path.h +++ b/support/include/nfsd_path.h @@ -4,6 +4,8 @@ #ifndef NFSD_PATH_H #define NFSD_PATH_H +#include <sys/stat.h> + void nfsd_path_init(void); const char * nfsd_path_nfsd_rootdir(void); |