STREAMS (stropts.h) is now obselete in libc 2.30 &>
lukehinds opened this issue · 1 comments
lukehinds commented
On arch linux:
ttyrec.c:60:10: fatal error: stropts.h: No such file or directory
60 | #include <stropts.h>
| ^~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: ttyrec.o] Error 1
==> ERROR: A failure occurred in build().
Aborting...
Error making: ttyrec
OK, I figured it out:
libc has removed STREAMS as of release 2.30 and it's now obsolete. Arch being rolling means its on a later version of libc. Over time other distros will be updating libc, so you will need to find an alternative to using stropts.h
- The obsolete and never-implemented XSI STREAMS header files <stropts.h>
and <sys/stropts.h> have been removed.
Deleted user commented
So, how to solve this problem? I had the same problem!