macro: define TIOCGPTPEER if missing

parent 01e5af75
...@@ -476,4 +476,12 @@ enum { ...@@ -476,4 +476,12 @@ enum {
typeof(&*(x))), \ typeof(&*(x))), \
sizeof(x) / sizeof((x)[0]), ((void)0))) 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 */ #endif /* __LXC_MACRO_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment