The following pull request was submitted through Github.
It can be accessed and reviewed at:

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
                 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 <>
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

Reply via email to