[5/6] nfsd_path: Include missing header for `struct stat`
diff mbox series

Message ID c4efa52412e2ff0e9079bf88ab94d8e366bf8f8f.1566976047.git.ps@pks.im
State New
Headers show
Series
  • Fixes for various compiler warnings
Related show

Commit Message

Patrick Steinhardt Aug. 28, 2019, 7:10 a.m. UTC
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>
---
 support/include/nfsd_path.h | 2 ++
 1 file changed, 2 insertions(+)

Patch
diff mbox series

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