Re: [nfs-utils PATCH] reexport.h: Include unistd.h to compile with musl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 12/14/23 5:12 AM, liezhi.yang@xxxxxxxxxxxxx wrote:
From: Robert Yang <liezhi.yang@xxxxxxxxxxxxx>

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





[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux