fix build implict error

This commit is contained in:
Rewnosor 2024-08-13 10:27:59 +08:00 committed by openkylin-cibot
parent c1bebdf24d
commit 772c0118de
3 changed files with 76 additions and 0 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
libepsilon (0.9.2+dfsg-ok2) nile; urgency=medium
* Fix build implict error.
-- liwenjun <liwenjun@kylinos.cn> Tue, 13 Aug 2024 10:27:25 +0800
libepsilon (0.9.2+dfsg-ok1) yangtze; urgency=medium
* Build for openKylin.

View File

@ -0,0 +1,69 @@
From: Rewnosor <liwenjun@kylinos.cn>
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 <pthread.h>
+extern int pthread_setconcurrency (int __level) __THROW;
#endif
#ifdef ENABLE_CLUSTER
# include <sys/socket.h>
# include <sys/types.h>
+# include <arpa/inet.h> // inet_top
+# include <unistd.h> // close
# include <signal.h>
# include <cmd_start_node.h>
#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 <pthread.h>
+extern int pthread_setconcurrency (int __level) __THROW;
#endif
#ifdef ENABLE_CLUSTER
# include <sys/socket.h>
# include <sys/types.h>
+# include <arpa/inet.h> // inet_top
+# include <unistd.h> // close
# include <signal.h>
# include <cmd_start_node.h>
#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 <cmd_start_node.h>
+#include <unistd.h> // read, write, fork
#include <syslog.h>
#include <sys/types.h>
#include <sys/socket.h>
+#include <arpa/inet.h> // inet_top
#include <netdb.h>
#include <sys/stat.h>
#include <sys/wait.h>
-#include <sys/stat.h>
+#include <sys/time.h> // gettimeofday
#include <netinet/in.h>
#include <signal.h>
#include <stdlib.h>

View File

@ -1,2 +1,3 @@
disable-lena-tests.patch
declare-xmalloc.patch
0003-fix-build-implict-error.patch