File klibc-O_TMPFILE.patch of Package klibc
diff -Ndurp klibc/usr/include/stdlib.h klibc-O_TMPFILE/usr/include/stdlib.h --- klibc/usr/include/stdlib.h 2016-08-14 23:16:01.306842791 +0300 +++ klibc-O_TMPFILE/usr/include/stdlib.h 2016-08-14 23:16:45.542846354 +0300 @@ -89,7 +89,9 @@ static __inline__ int posix_openpt(int _ { __extern int open(const char *, int, ...); +#ifdef O_TMPFILE __mode &= ~(O_CREAT | O_TMPFILE); +#endif return open("/dev/ptmx", __mode); }