aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-13 16:18:34 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-13 16:18:34 +0000
commit5a8ff3aa6dfdd1f4cb3cebc34504240fbece7852 (patch)
tree5b8662660827a1b096f182907f56a6f78d8bdbd8 /configure
parent2dc766dafc7f5416bfdf184b42f0c5c22567bb60 (diff)
Probe for OpenSolaris curses missing resize_term
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7100 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index 377f341407..7aa4096552 100755
--- a/configure
+++ b/configure
@@ -1010,7 +1010,10 @@ if test "$curses" = "yes" ; then
curses=no
cat > $TMPC << EOF
#include <curses.h>
-int main(void) { return curses_version(); }
+#ifdef __OpenBSD__
+#define resize_term resizeterm
+#endif
+int main(void) { resize_term(0, 0); return curses_version(); }
EOF
if $cc $ARCH_CFLAGS -o $TMPE $TMPC -lcurses > /dev/null 2> /dev/null ; then
curses=yes