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

* Re: [nfs-utils PATCH] reexport.h: Include unistd.h to compile with musl
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Steve Dickson @ 2024-01-04  0:42 UTC (permalink / raw)
  To: liezhi.yang, linux-nfs



On 12/14/23 5:12 AM, liezhi.yang@windriver.com wrote:
> 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(+)
I believe this is fixed the last RC release
Please me know if that is not the case.

steved.

> 
> 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 {


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

* Re: [nfs-utils PATCH] reexport.h: Include unistd.h to compile with musl
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Steve Dickson @ 2024-11-11 17:24 UTC (permalink / raw)
  To: liezhi.yang, linux-nfs



On 12/14/23 4:12 AM, liezhi.yang@windriver.com wrote:
> 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>
Committed... (tag: nfs-utils-2-8-2-rc1)

steved.

> ---
>   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 {


^ permalink raw reply	[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