[CRIU] [PATCH 4/5] remote: Remove pthread.h and semaphore.h

Radostin Stoyanov rstoyanov1 at gmail.com
Wed Aug 22 22:54:32 MSK 2018


We don't need pthread.h and semaphore.h because img-proxy was rewritten
without threads.

Signed-off-by: Radostin Stoyanov <rstoyanov1 at gmail.com>
---
 criu/Makefile.packages    | 2 +-
 criu/img-cache.c          | 1 -
 criu/img-proxy.c          | 1 -
 criu/img-remote.c         | 2 --
 criu/include/img-remote.h | 2 --
 5 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/criu/Makefile.packages b/criu/Makefile.packages
index 2cea9478..d828cb61 100644
--- a/criu/Makefile.packages
+++ b/criu/Makefile.packages
@@ -32,7 +32,7 @@ REQ-DEB-PKG-NAMES	+= python-future
 REQ-RPM-PKG-TEST-NAMES	+= $(PYTHON)-pyyaml
 endif
 
-export LIBS		+= -lrt -lpthread -lprotobuf-c -ldl -lnl-3 -lsoccr -Lsoccr/ -lnet
+export LIBS		+= -lrt -lprotobuf-c -ldl -lnl-3 -lsoccr -Lsoccr/ -lnet
 
 check-packages-failed:
 	$(warning Can not find some of the required libraries)
diff --git a/criu/img-cache.c b/criu/img-cache.c
index 98fdf80e..b7de884e 100644
--- a/criu/img-cache.c
+++ b/criu/img-cache.c
@@ -2,7 +2,6 @@
 
 #include "img-remote.h"
 #include "criu-log.h"
-#include <pthread.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <fcntl.h>
diff --git a/criu/img-proxy.c b/criu/img-proxy.c
index b4822848..b504eae5 100644
--- a/criu/img-proxy.c
+++ b/criu/img-proxy.c
@@ -2,7 +2,6 @@
 
 #include "img-remote.h"
 #include "criu-log.h"
-#include <pthread.h>
 #include <fcntl.h>
 #include <sys/socket.h>
 #include "cr_options.h"
diff --git a/criu/img-remote.c b/criu/img-remote.c
index dbe2d294..745bee8f 100644
--- a/criu/img-remote.c
+++ b/criu/img-remote.c
@@ -16,9 +16,7 @@
 #include "common/compiler.h"
 #include "cr_options.h"
 
-#include <semaphore.h>
 #include "sys/un.h"
-#include <pthread.h>
 #include <sys/file.h>
 
 #include "protobuf.h"
diff --git a/criu/include/img-remote.h b/criu/include/img-remote.h
index 8a9eb099..f9de8c79 100644
--- a/criu/include/img-remote.h
+++ b/criu/include/img-remote.h
@@ -3,8 +3,6 @@
 
 #include <stdint.h>
 #include "common/list.h"
-#include <pthread.h>
-#include <semaphore.h>
 
 #ifndef IMAGE_REMOTE_H
 #define	IMAGE_REMOTE_H
-- 
2.17.1



More information about the CRIU mailing list