The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/ruby-lxc/pull/42
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === When building `ruby-lxc` with LXC 3.0, I encountered the following error: ``` compiling lxc.c In file included from /nix/store/r3hkmi5r6ar270bsqlk9cha3fd4hc62w-lxc-3.0.0/include/lxc/lxccontainer.h:31:0, from lxc.c:4: lxc.c: In function ‘lxc_attach_parse_options’: lxc.c:572:41: error: ‘EBADF’ undeclared (first use in this function) lxc_attach_options_t default_opts = LXC_ATTACH_OPTIONS_DEFAULT; ``` It can be fixed simply by including `errno.h`.
From 0eb378c2914b0a345d3aa321b1a63011dede6150 Mon Sep 17 00:00:00 2001 From: Jakub Skokan <jakub.sko...@havefun.cz> Date: Thu, 12 Apr 2018 12:29:36 +0200 Subject: [PATCH] Fix build with LXC 3.0 --- ext/lxc/lxc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/lxc/lxc.c b/ext/lxc/lxc.c index b45a141..b0ec634 100644 --- a/ext/lxc/lxc.c +++ b/ext/lxc/lxc.c @@ -6,6 +6,7 @@ #include <signal.h> #include <stdint.h> #include <string.h> +#include <errno.h> #define SYMBOL(s) ID2SYM(rb_intern(s))
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel