diff options
Diffstat (limited to 'meta/recipes-connectivity/nfs-utils/nfs-utils/0001-reexport.h-Include-unistd.h-to-compile-with-musl.patch')
-rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils/0001-reexport.h-Include-unistd.h-to-compile-with-musl.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-reexport.h-Include-unistd.h-to-compile-with-musl.patch b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-reexport.h-Include-unistd.h-to-compile-with-musl.patch new file mode 100644 index 0000000000..57d4660571 --- /dev/null +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-reexport.h-Include-unistd.h-to-compile-with-musl.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From 45597a58e98f351b18db8444292b1cf6dd0cd810 Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
3 | Date: Sat, 9 Dec 2023 23:34:08 -0800 | ||
4 | Subject: [PATCH] reexport.h: Include unistd.h to compile with musl | ||
5 | |||
6 | Fixed error when compile with musl | ||
7 | reexport.c: In function 'reexpdb_init': | ||
8 | reexport.c:62:17: error: implicit declaration of function 'sleep' [-Werror=implicit-function-declaration] | ||
9 | 62 | sleep(1); | ||
10 | |||
11 | |||
12 | Upstream-Status: Submitted [https://marc.info/?l=linux-nfs&m=170254661824522&w=2] | ||
13 | |||
14 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
15 | --- | ||
16 | support/reexport/reexport.h | 1 + | ||
17 | 1 files changed, 1 insertions(+) | ||
18 | |||
19 | diff --git a/support/reexport/reexport.h b/support/reexport/reexport.h | ||
20 | index 85fd59c..02f8684 100644 | ||
21 | --- a/support/reexport/reexport.h | ||
22 | +++ b/support/reexport/reexport.h | ||
23 | @@ -1,6 +1,8 @@ | ||
24 | #ifndef REEXPORT_H | ||
25 | #define REEXPORT_H | ||
26 | |||
27 | +#include <unistd.h> | ||
28 | + | ||
29 | #include "nfslib.h" | ||
30 | |||
31 | enum { | ||
32 | -- | ||
33 | 2.42.0 | ||
34 | |||