diff --git a/LibOS/shim/src/ipc/shim_ipc_nsimpl.h b/LibOS/shim/src/ipc/shim_ipc_nsimpl.h index 92b930b1..ee2a24e9 100644 --- a/LibOS/shim/src/ipc/shim_ipc_nsimpl.h +++ b/LibOS/shim/src/ipc/shim_ipc_nsimpl.h @@ -31,8 +31,6 @@ #include -#warning "be sure before including this file" - #if !defined(NS) || !defined(NS_CAP) # error "NS or NS_CAP is not defined" #endif @@ -844,6 +842,9 @@ static int connect_ns (IDTYPE * vmid, struct shim_ipc_port ** portptr) return 0; } +// Turn off this function as it is not used +// Keep the code for future use +#if 0 static int disconnect_ns(struct shim_ipc_port * port) { lock(cur_process.lock); @@ -855,6 +856,7 @@ static int disconnect_ns(struct shim_ipc_port * port) del_ipc_port(port, IPC_PORT_LDR); return 0; } +#endif int CONCAT3(prepare, NS, leader) (void) { diff --git a/LibOS/shim/src/sys/shim_epoll.c b/LibOS/shim/src/sys/shim_epoll.c index c7d8cdf6..9de36f1f 100644 --- a/LibOS/shim/src/sys/shim_epoll.c +++ b/LibOS/shim/src/sys/shim_epoll.c @@ -38,6 +38,9 @@ #include +/* Avoid duplicated definitions */ +#ifndef EPOLLIN + #define EPOLLIN 0x001 #define EPOLLPRI 0x002 #define EPOLLOUT 0x004 @@ -49,6 +52,8 @@ #define EPOLLHUP 0x010 #define EPOLLRDHUP 0x2000 +#endif + #define MAX_EPOLL_FDS 1024 struct shim_mount epoll_builtin_fs;