[nfs-utils PATCH] reexport.h: Include unistd.h to compile with musl
From: <hidden>
Date: 2023-12-14 09:37:22
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: <hidden>
Date: 2023-12-14 09:37:22
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Robert Yang <redacted> Fixed error when compile with musl reexport.c: In function 'reexpdb_init': reexport.c:62:17: error: implicit declaration of function 'sleep' [-Werror=implicit-function-declaration] 62 | sleep(1); Signed-off-by: Robert Yang <redacted> --- support/reexport/reexport.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/support/reexport/reexport.h b/support/reexport/reexport.h
index 85fd59c1..02f86844 100644
--- a/support/reexport/reexport.h
+++ b/support/reexport/reexport.h@@ -1,6 +1,8 @@ #ifndef REEXPORT_H #define REEXPORT_H +#include <unistd.h> + #include "nfslib.h" enum {
--
2.35.5