diff --git a/debian/changelog b/debian/changelog index 5f79196..b458574 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +libepsilon (0.9.2+dfsg-ok2) nile; urgency=medium + + * Fix build implict error. + + -- liwenjun Tue, 13 Aug 2024 10:27:25 +0800 + libepsilon (0.9.2+dfsg-ok1) yangtze; urgency=medium * Build for openKylin. diff --git a/debian/patches/0003-fix-build-implict-error.patch b/debian/patches/0003-fix-build-implict-error.patch new file mode 100644 index 0000000..a335580 --- /dev/null +++ b/debian/patches/0003-fix-build-implict-error.patch @@ -0,0 +1,69 @@ +From: Rewnosor +Date: Tue, 13 Aug 2024 10:27:59 +0800 +Subject: fix build implict error + +--- + src/cmd_decode_file.c | 3 +++ + src/cmd_encode_file.c | 3 +++ + src/cmd_start_node.c | 4 +++- + 3 files changed, 9 insertions(+), 1 deletion(-) + +diff --git a/src/cmd_decode_file.c b/src/cmd_decode_file.c +index 05c2e6e..4e87a5c 100644 +--- a/src/cmd_decode_file.c ++++ b/src/cmd_decode_file.c +@@ -28,11 +28,14 @@ + + #ifdef ENABLE_PTHREADS + # include ++extern int pthread_setconcurrency (int __level) __THROW; + #endif + + #ifdef ENABLE_CLUSTER + # include + # include ++# include // inet_top ++# include // close + # include + # include + #endif +diff --git a/src/cmd_encode_file.c b/src/cmd_encode_file.c +index bc82821..a8ef80a 100644 +--- a/src/cmd_encode_file.c ++++ b/src/cmd_encode_file.c +@@ -28,11 +28,14 @@ + + #ifdef ENABLE_PTHREADS + # include ++extern int pthread_setconcurrency (int __level) __THROW; + #endif + + #ifdef ENABLE_CLUSTER + # include + # include ++# include // inet_top ++# include // close + # include + # include + #endif +diff --git a/src/cmd_start_node.c b/src/cmd_start_node.c +index 8d71285..afc9777 100644 +--- a/src/cmd_start_node.c ++++ b/src/cmd_start_node.c +@@ -29,13 +29,15 @@ + #ifdef ENABLE_CLUSTER + + #include ++#include // read, write, fork + #include + #include + #include ++#include // inet_top + #include + #include + #include +-#include ++#include // gettimeofday + #include + #include + #include diff --git a/debian/patches/series b/debian/patches/series index 3f94e39..5bc868a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ disable-lena-tests.patch declare-xmalloc.patch +0003-fix-build-implict-error.patch