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/SunOS.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'config/SunOS.mk') diff --git a/config/SunOS.mk b/config/SunOS.mk index 5c12fd4c23..ec290346f2 100644 --- a/config/SunOS.mk +++ b/config/SunOS.mk @@ -22,6 +22,7 @@ LIB64DIR = lib/amd64 SOCKET_LIBS = -lsocket CURSES_LIBS = -lcurses +UTIL_LIBS = SONAME_LDFLAG = -h SHLIB_CFLAGS = -R /usr/sfw/$(LIBDIR) -shared -- cgit v1.2.3