2019-08-28 07:12:24

by Patrick Steinhardt

[permalink] [raw]
Subject: [PATCH 5/6] 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 <[email protected]>
---
support/include/nfsd_path.h | 2 ++
1 file changed, 2 insertions(+)

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);
--
2.23.0