Skip to content

Commit

Permalink
add omitted macro definition
Browse files Browse the repository at this point in the history
Signed-off-by: zhongtao <[email protected]>
  • Loading branch information
zhongtao committed Nov 21, 2024
1 parent d9947ab commit 9aadae1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/daemon/modules/api/runtime_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ typedef struct _rt_create_params_t {
bool tty;
bool open_stdin;
const char *task_addr;
#ifdef ENABLE_NO_PIVOT_ROOT
bool no_pivot_root;
#endif
} rt_create_params_t;

typedef struct _rt_start_params_t {
Expand Down
2 changes: 2 additions & 0 deletions src/daemon/modules/service/service_container.c
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ static int do_oci_spec_update(const char *id, oci_runtime_spec *oci_spec, contai
return 0;
}

#ifdef ENABLE_NO_PIVOT_ROOT
static bool pack_no_pivot_root(const container_t *cont)
{
size_t i = 0;
Expand All @@ -759,6 +760,7 @@ static bool pack_no_pivot_root(const container_t *cont)
}
return ret;
}
#endif

static int do_start_container(container_t *cont, const char *console_fifos[], bool reset_rm, pid_ppid_info_t *pid_info)
{
Expand Down

0 comments on commit 9aadae1

Please sign in to comment.