[lxc-devel] [lxc/master] macro: define TIOCGPTPEER if missing
brauner on Github
lxc-bot at linuxcontainers.org
Wed Aug 5 14:47:26 UTC 2020
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200805/bab39c0b/attachment.bin>
-------------- next part --------------
From 07002a08c1b5b1c9bc86029275164222c7b8943a Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Wed, 5 Aug 2020 16:44:53 +0200
Subject: [PATCH] macro: define TIOCGPTPEER if missing
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
src/lxc/macro.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/lxc/macro.h b/src/lxc/macro.h
index 5155f7b162..d6b9954e8d 100644
--- a/src/lxc/macro.h
+++ b/src/lxc/macro.h
@@ -504,4 +504,12 @@ enum {
typeof(&*(x))), \
sizeof(x) / sizeof((x)[0]), ((void)0)))
+#ifndef TIOCGPTPEER
+ #if defined __sparc__
+ #define TIOCGPTPEER _IO('t', 137)
+ #else
+ #define TIOCGPTPEER _IO('T', 0x41)
+ #endif
+#endif
+
#endif /* __LXC_MACRO_H */
More information about the lxc-devel
mailing list