aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_osdeps.h
diff options
context:
space:
mode:
authorChristoph Egger <Christoph.Egger@amd.com>2010-07-29 16:12:50 +0100
committerChristoph Egger <Christoph.Egger@amd.com>2010-07-29 16:12:50 +0100
commit47aa247c1f885edc05df4e0364ad0f46ce1d05af (patch)
treefce1def2eda5d391771317f27dcc63da5ee890a2 /tools/libxl/libxl_osdeps.h
parent64de62a14e7b37650d86c2108f1076b066bb43a5 (diff)
downloadxen-47aa247c1f885edc05df4e0364ad0f46ce1d05af.tar.gz
xen-47aa247c1f885edc05df4e0364ad0f46ce1d05af.tar.bz2
xen-47aa247c1f885edc05df4e0364ad0f46ce1d05af.zip
libxl: Portability fixes for pty handling, in libxl_osdeps.h
This is the same approach used in tools/console, although we have a separate instance of it as it is difficult to share code between these two places. Also add a missing include of <termios.h>, and fix a literal use of -lutil to refer to UTIL_LIBS. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_osdeps.h')
-rw-r--r--tools/libxl/libxl_osdeps.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/libxl/libxl_osdeps.h b/tools/libxl/libxl_osdeps.h
index fc453c3553..985a5ffa8a 100644
--- a/tools/libxl/libxl_osdeps.h
+++ b/tools/libxl/libxl_osdeps.h
@@ -23,6 +23,14 @@
#define _GNU_SOURCE
+#if defined(__NetBSD__) || defined(__OpenBSD__)
+#include <util.h>
+#elif defined(__linux__)
+#include <pty.h>
+#elif defined(__sun__)
+#include <stropts.h>
+#endif
+
#ifdef NEED_OWN_ASPRINTF
#include <stdarg.h>