aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-10-08 10:55:50 +0100
committerKeir Fraser <keir@xensource.com>2007-10-08 10:55:50 +0100
commitb2ac1c4e5053c53e128e74bd0de178e1857a0d5d (patch)
tree1d027bc4bd8915c7ddcf3e5f5038b533d964b2a4 /config
parentf94f6e258de82f13747c7b00e2569c12b96c7011 (diff)
downloadxen-b2ac1c4e5053c53e128e74bd0de178e1857a0d5d.tar.gz
xen-b2ac1c4e5053c53e128e74bd0de178e1857a0d5d.tar.bz2
xen-b2ac1c4e5053c53e128e74bd0de178e1857a0d5d.zip
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 <Christoph.Egger@amd.com>
Diffstat (limited to 'config')
-rw-r--r--config/StdGNU.mk1
-rw-r--r--config/SunOS.mk1
2 files changed, 2 insertions, 0 deletions
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
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