mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
pty.c: Restore build on systems without cfmakeraw(3) (re: 5a2e7dae)
The OpenSUSE patch uses cfmakeraw(3) which is on Linux, BSD and macOS, but not portable. The build failed on Solaris and variants. src/cmd/builtin/features/pty: - Add simple test for the presence of cfmakeraw(3). I love iffe. src/cmd/builtin/pty.c: - Add POSIX compliant fallback flaggery for systems without it.
This commit is contained in:
parent
8e45daeaf1
commit
206bba4f2e
2 changed files with 8 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ header stropts.h
|
|||
|
||||
lib openpty,_getpty,ptsname -lutil
|
||||
lib grantpt,unlockpt,posix_openpt stdlib.h
|
||||
lib cfmakeraw termios.h
|
||||
|
||||
tst - output{
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue