Skip to content

Commit f1f1786

Browse files
authored
Merge pull request lxc#1 from Jafaral/lxc_strerror
Fix: undefined symbol error when loading lxc.so
2 parents 5039b49 + c0712e1 commit f1f1786

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/lxc/lxc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ extern void *rb_thread_call_without_gvl(void *(*func)(void *), void *data1,
4242

4343
extern int lxc_wait_for_pid_status(pid_t pid);
4444
extern long lxc_config_parse_arch(const char *arch);
45-
extern const char *lxc_strerror(int error);
4645

4746
static VALUE Container;
4847
static VALUE Error;
@@ -2069,7 +2068,7 @@ container_unfreeze(VALUE self)
20692068

20702069
ret = RELEASING_GVL(unfreeze_without_gvl, data);
20712070
if (!ret)
2072-
rb_raise(Error, "unable to unfreeze container: %s", lxc_strerror(ret));
2071+
rb_raise(Error, "unable to unfreeze container");
20732072

20742073
return self;
20752074
}

0 commit comments

Comments
 (0)