Fix: undefined symbol error when loading lxc.so

lxc_strerror() doesn't not exist, it is nothing more than an idea. 
LXC folks don't have plans to add it any time soon

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
This commit is contained in:
Jafar Al-Gharaibeh 2016-10-13 13:07:05 -05:00 committed by GitHub
parent 5039b493c5
commit c0712e16d6

View file

@ -42,7 +42,6 @@ extern void *rb_thread_call_without_gvl(void *(*func)(void *), void *data1,
extern int lxc_wait_for_pid_status(pid_t pid); extern int lxc_wait_for_pid_status(pid_t pid);
extern long lxc_config_parse_arch(const char *arch); extern long lxc_config_parse_arch(const char *arch);
extern const char *lxc_strerror(int error);
static VALUE Container; static VALUE Container;
static VALUE Error; static VALUE Error;
@ -2069,7 +2068,7 @@ container_unfreeze(VALUE self)
ret = RELEASING_GVL(unfreeze_without_gvl, data); ret = RELEASING_GVL(unfreeze_without_gvl, data);
if (!ret) if (!ret)
rb_raise(Error, "unable to unfreeze container: %s", lxc_strerror(ret)); rb_raise(Error, "unable to unfreeze container");
return self; return self;
} }