diff options
author | Keir Fraser <keir@xensource.com> | 2007-10-08 10:55:50 +0100 |
---|---|---|
committer | Keir Fraser <keir@xensource.com> | 2007-10-08 10:55:50 +0100 |
commit | b2ac1c4e5053c53e128e74bd0de178e1857a0d5d (patch) | |
tree | 1d027bc4bd8915c7ddcf3e5f5038b533d964b2a4 /tools/console/Makefile | |
parent | f94f6e258de82f13747c7b00e2569c12b96c7011 (diff) | |
download | xen-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 'tools/console/Makefile')
-rw-r--r-- | tools/console/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/console/Makefile b/tools/console/Makefile index 7a8e15c0a8..445819ee8c 100644 --- a/tools/console/Makefile +++ b/tools/console/Makefile @@ -22,11 +22,11 @@ clean: xenconsoled: $(patsubst %.c,%.o,$(wildcard daemon/*.c)) $(CC) $(CFLAGS) $^ -o $@ -L$(XEN_LIBXC) -L$(XEN_XENSTORE) \ - $(SOCKET_LIBS) -lxenctrl -lxenstore + $(UTIL_LIBS) $(SOCKET_LIBS) -lxenctrl -lxenstore xenconsole: $(patsubst %.c,%.o,$(wildcard client/*.c)) $(CC) $(CFLAGS) $^ -o $@ -L$(XEN_LIBXC) -L$(XEN_XENSTORE) \ - $(SOCKET_LIBS) -lxenctrl -lxenstore + $(UTIL_LIBS) $(SOCKET_LIBS) -lxenctrl -lxenstore .PHONY: install install: $(BIN) |