From b2ac1c4e5053c53e128e74bd0de178e1857a0d5d Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 8 Oct 2007 10:55:50 +0100 Subject: xenconsoled: portability fixes: - Use openpty(), which does the same as the sequence of open(), grantpt(), unlockpt(), ptsname(), tcgetattr() simplifies code - Check return code from tcsetattr() - sprintf() -> snprintf() - OpenBSD lacks POSIX grantpt() and unlockpt() requires use of openpty() - Solaris lacks POSIX openpty() via feedback from SUN (John Levon) implement openpty() for Solaris, tested and ok'd by SUN (John Levon) Signed-off-by: Christoph Egger --- config/StdGNU.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'config/StdGNU.mk') diff --git a/config/StdGNU.mk b/config/StdGNU.mk index 4f08ea9a30..87225f180e 100644 --- a/config/StdGNU.mk +++ b/config/StdGNU.mk @@ -21,6 +21,7 @@ LIB64DIR = lib64 SOCKET_LIBS = CURSES_LIBS = -lncurses +UTIL_LIBS = -lutil SONAME_LDFLAG = -soname SHLIB_CFLAGS = -shared -- cgit v1.2.3