public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [nfs-utils PATCH] reexport.h: Include unistd.h to compile with musl
@ 2023-12-14 10:12 liezhi.yang
  2024-01-04  0:42 ` Steve Dickson
  2024-11-11 17:24 ` Steve Dickson
  0 siblings, 2 replies; 3+ messages in thread
From: liezhi.yang @ 2023-12-14 10:12 UTC (permalink / raw)
  To: linux-nfs

From: Robert Yang <liezhi.yang@windriver.com>

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 <liezhi.yang@windriver.com>
---
 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-11 17:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-14 10:12 [nfs-utils PATCH] reexport.h: Include unistd.h to compile with musl liezhi.yang
2024-01-04  0:42 ` Steve Dickson
2024-11-11 17:24 ` Steve Dickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox