mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 20:33:54 -06:00
portability: pty.h is glibc-specific
This should fix building the GTK+ front-end on BSDs. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 1368533121-30796-1-git-send-email-pbonzini@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
d8e846e17c
commit
7791dba3ec
3 changed files with 12 additions and 11 deletions
|
@ -42,6 +42,18 @@
|
|||
#include <signal.h>
|
||||
#include "glib-compat.h"
|
||||
|
||||
#if defined(__GLIBC__)
|
||||
# include <pty.h>
|
||||
#elif defined CONFIG_BSD
|
||||
# if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
|
||||
# include <libutil.h>
|
||||
# else
|
||||
# include <util.h>
|
||||
# endif
|
||||
#elif defined CONFIG_SOLARIS
|
||||
# include <stropts.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "sysemu/os-win32.h"
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue